• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/ml/model/base.php
  • Класс: Bitrix\Crm\Ml\Model\Base
  • Вызов: Base::getPredictionSet
public function getPredictionSet($fromId, $limit): array;

/**
 * Should return title for this model
 *
 * @return string
 */
abstract public function getTitle(): string;

abstract public function hasAccess(int $userId = 0): bool;

public function __construct(string $name)
{
	$this->name = $name;
	$this->mlModel = null;
	if (Loader::includeModule('ml'))
	{
		$this->mlModel = Model::loadWithName($this->name);
	}
}