From 96863d8fd4bd5bdef6816e84cfd179cc7679e290 Mon Sep 17 00:00:00 2001 From: David Monllao Date: Fri, 23 Jun 2017 11:05:27 +0200 Subject: [PATCH] MDL-59065 mlbackend_python: Switch references to moodlehq fork Part of MDL-57791 epic. --- lib/mlbackend/python/classes/processor.php | 10 +++++----- lib/mlbackend/python/lang/en/mlbackend_python.php | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/mlbackend/python/classes/processor.php b/lib/mlbackend/python/classes/processor.php index e0e042d101b..5b05fa6daab 100644 --- a/lib/mlbackend/python/classes/processor.php +++ b/lib/mlbackend/python/classes/processor.php @@ -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?. @@ -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; @@ -84,7 +84,7 @@ class processor implements \core_analytics\predictor { // 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); @@ -125,7 +125,7 @@ class processor implements \core_analytics\predictor { // 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); @@ -168,7 +168,7 @@ class processor implements \core_analytics\predictor { // 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) . ' ' . diff --git a/lib/mlbackend/python/lang/en/mlbackend_python.php b/lib/mlbackend/python/lang/en/mlbackend_python.php index e201ddee985..fad23ba3383 100644 --- a/lib/mlbackend/python/lang/en/mlbackend_python.php +++ b/lib/mlbackend/python/lang/en/mlbackend_python.php @@ -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';