Documentation

MLContext
in package

Table of Contents

Constants

ADDITIONAL_PACKAGES  = ['0.16' => 'numpy~=1.18.0', '0.17' => 'numpy~=1.18.0', '0.18' => 'numpy~=1.18.0', '0.19' => 'numpy~=1.18.0', '0.20' => 'numpy~=1.18.0', '0.21' => 'numpy~=1.18.0', '0.22' => 'numpy~=1.18.0 torch===1.7.1+cpu torchvision===0.8.2+cpu torchaudio===0.7.2', '0.23' => 'torch===1.7.1+cpu torchvision===0.8.2+cpu torchaudio===0.7.2']
ADDITIONAL_REPOSITORIES  = '-f https://download.pytorch.org/whl/torch_stable.html'
LOCK_EXTENSION  = '.lock'
PACKAGE_MAPPING  = ['1.7.0-preview' => '0.23', '1.6.0-preview' => '0.22', '1.5.0-preview' => '0.21', '1.4.0-preview' => '0.20', '1.3.0-preview' => '0.19', '1.2.0-preview' => '0.18', '1.1.0-preview' => '0.17', '1.0.3' => '0.16', '1.0.2' => '0.16']
ROOT_PATH  = 'python'
UPGRADE_PIP  = 'python.exe -m pip install --upgrade pip'

Properties

$version  : mixed

Methods

__construct()  : mixed
determineContexts()  : iterable<string|int, mixed>
freeze()  : mixed
install()  : mixed
learn()  : int
loadLock()  : mixed
loadPath()  : mixed
lockExists()  : bool
pathExists()  : bool
setup()  : mixed
update()  : mixed

Constants

ADDITIONAL_PACKAGES

public mixed ADDITIONAL_PACKAGES = ['0.16' => 'numpy~=1.18.0', '0.17' => 'numpy~=1.18.0', '0.18' => 'numpy~=1.18.0', '0.19' => 'numpy~=1.18.0', '0.20' => 'numpy~=1.18.0', '0.21' => 'numpy~=1.18.0', '0.22' => 'numpy~=1.18.0 torch===1.7.1+cpu torchvision===0.8.2+cpu torchaudio===0.7.2', '0.23' => 'torch===1.7.1+cpu torchvision===0.8.2+cpu torchaudio===0.7.2']

ADDITIONAL_REPOSITORIES

public mixed ADDITIONAL_REPOSITORIES = '-f https://download.pytorch.org/whl/torch_stable.html'

LOCK_EXTENSION

public mixed LOCK_EXTENSION = '.lock'

PACKAGE_MAPPING

public mixed PACKAGE_MAPPING = ['1.7.0-preview' => '0.23', '1.6.0-preview' => '0.22', '1.5.0-preview' => '0.21', '1.4.0-preview' => '0.20', '1.3.0-preview' => '0.19', '1.2.0-preview' => '0.18', '1.1.0-preview' => '0.17', '1.0.3' => '0.16', '1.0.2' => '0.16']

UPGRADE_PIP

public mixed UPGRADE_PIP = 'python.exe -m pip install --upgrade pip'

Properties

Methods

__construct()

public __construct(string $workDirectory, string $version) : mixed
Parameters
$workDirectory : string
$version : string

determineContexts()

public static determineContexts(string $serverPath) : iterable<string|int, mixed>
Parameters
$serverPath : string
Return values
iterable<string|int, mixed>

learn()

public learn(string $workDirectory, string $arguments) : int
Parameters
$workDirectory : string
$arguments : string
Return values
int

lockExists()

public lockExists() : bool
Return values
bool

pathExists()

public pathExists() : bool
Return values
bool

        
On this page

Search results