Skip to content

Commit

Permalink
MDL-59065 mlbackend_python: Switch references to moodlehq fork
Browse files Browse the repository at this point in the history
Part of MDL-57791 epic.
  • Loading branch information
David Monllao committed Jul 24, 2017
1 parent e709e54 commit 96863d8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions lib/mlbackend/python/classes/processor.php
Expand Up @@ -38,7 +38,7 @@ class processor implements \core_analytics\predictor {
/**
* The required version of the python package that performs all calculations.
*/
const REQUIRED_PIP_PACKAGE_VERSION = '0.0.9';
const REQUIRED_PIP_PACKAGE_VERSION = '0.0.2';

/**
* Is the plugin ready to be used?.
Expand All @@ -48,7 +48,7 @@ class processor implements \core_analytics\predictor {
public function is_ready() {

// Check the installed pip package version.
$cmd = 'python -m moodleinspire.version';
$cmd = 'python -m moodlemlbackend.version';

$output = null;
$exitcode = null;
Expand Down Expand Up @@ -84,7 +84,7 @@ public function train($uniqueid, \stored_file $dataset, $outputdir) {
// Obtain the physical route to the file.
$datasetpath = $this->get_file_path($dataset);

$cmd = 'python -m moodleinspire.training ' .
$cmd = 'python -m moodlemlbackend.training ' .
escapeshellarg($uniqueid) . ' ' .
escapeshellarg($outputdir) . ' ' .
escapeshellarg($datasetpath);
Expand Down Expand Up @@ -125,7 +125,7 @@ public function predict($uniqueid, \stored_file $dataset, $outputdir) {
// Obtain the physical route to the file.
$datasetpath = $this->get_file_path($dataset);

$cmd = 'python -m moodleinspire.prediction ' .
$cmd = 'python -m moodlemlbackend.prediction ' .
escapeshellarg($uniqueid) . ' ' .
escapeshellarg($outputdir) . ' ' .
escapeshellarg($datasetpath);
Expand Down Expand Up @@ -168,7 +168,7 @@ public function evaluate($uniqueid, $maxdeviation, $niterations, \stored_file $d
// Obtain the physical route to the file.
$datasetpath = $this->get_file_path($dataset);

$cmd = 'python -m moodleinspire.evaluation ' .
$cmd = 'python -m moodlemlbackend.evaluation ' .
escapeshellarg($uniqueid) . ' ' .
escapeshellarg($outputdir) . ' ' .
escapeshellarg($datasetpath) . ' ' .
Expand Down
4 changes: 2 additions & 2 deletions lib/mlbackend/python/lang/en/mlbackend_python.php
Expand Up @@ -22,6 +22,6 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

$string['packageinstalledshouldbe'] = '"moodleinspire" python package should be updated. The required version is "{$a->required}" and the installed version is "{$a->installed}"';
$string['packageinstalledshouldbe'] = '"moodlemlbackend" python package should be updated. The required version is "{$a->required}" and the installed version is "{$a->installed}"';
$string['pluginname'] = 'Python machine learning backend';
$string['pythonpackagenotinstalled'] = 'moodleinspire python package is not installed or there is a problem with it. Please execute "{$a}" from command line interface for more info';
$string['pythonpackagenotinstalled'] = '"moodlemlbackend" python package is not installed or there is a problem with it. Please execute "{$a}" from command line interface for more info';

0 comments on commit 96863d8

Please sign in to comment.