Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-64679

We should allow models to be purged once they are trained

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Install a new moodle site
      2. Install https://github.com/dmonllao/moodle-local_testanalytics
      3. Log in as admin and go to Site admin > Analytics > Analytics models
      4. Disable "Linear" model
      5. Run the following CLI commands:

        php admin/tool/generator/cli/maketestsite.php --size=S
        php admin/tool/task/cli/schedule_task.php --execute=\\tool_analytics\\task\\train_models
        php admin/tool/task/cli/schedule_task.php --execute=\\tool_analytics\\task\\predict_models
        

      6. Log in as admin and go to Site admin > Analytics > Analytics models
      7. Ensure that:
        1. "Binary" model contains a "Clear predictions" link in the "Actions" menu
        2. You can follow the link and you can see a confirmation dialogue, confirm that you want to clear predictions
        3. "Binary" model SHOULD NOT contain a "Clear predictions" link in the "Actions" menu now
        4. "Users without pic" model contains a "Clear predictions" link in the "Actions" menu
        5. You can follow the link and you can see a confirmation dialogue, confirm that you want to clear predictions
        6. "Users without pic" model SHOULD NOT contain a "Clear predictions" link in the "Actions" menu now
      Show
      Install a new moodle site Install https://github.com/dmonllao/moodle-local_testanalytics Log in as admin and go to Site admin > Analytics > Analytics models Disable "Linear" model Run the following CLI commands: php admin/tool/generator/cli/maketestsite.php --size=S php admin/tool/task/cli/schedule_task.php --execute=\\tool_analytics\\task\\train_models php admin/tool/task/cli/schedule_task.php --execute=\\tool_analytics\\task\\predict_models Log in as admin and go to Site admin > Analytics > Analytics models Ensure that: "Binary" model contains a "Clear predictions" link in the "Actions" menu You can follow the link and you can see a confirmation dialogue, confirm that you want to clear predictions "Binary" model SHOULD NOT contain a "Clear predictions" link in the "Actions" menu now "Users without pic" model contains a "Clear predictions" link in the "Actions" menu You can follow the link and you can see a confirmation dialogue, confirm that you want to clear predictions "Users without pic" model SHOULD NOT contain a "Clear predictions" link in the "Actions" menu now
    • Affected Branches:
      MOODLE_34_STABLE, MOODLE_35_STABLE, MOODLE_36_STABLE, MOODLE_37_STABLE
    • Fixed Branches:
      MOODLE_35_STABLE, MOODLE_36_STABLE
    • Pull from Repository:
    • Pull 3.5 Branch:
    • Pull 3.6 Branch:
    • Pull Master Branch:
      MDL-64679_master

      Description

      At the moment we only allow models to be purged "Clear prediction" option when predictions are available. We should allow any trained model to be cleared.

      Some models may run the prediction process but the predicted values may not be relevant and, therefore would be discarded. The model is still trained, but we do not provide any option to clear the model. An example of this is the students at risk model, generating 4 predictions, all of them not-at-risk predictions. We should still allow admins to clear the model.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                11/Mar/19

                Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour
                1h