Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 11
Línea 68... Línea 68...
68
    /**
68
    /**
69
     * test_static_prediction
69
     * test_static_prediction
70
     *
70
     *
71
     * @return void
71
     * @return void
72
     */
72
     */
73
    public function test_static_prediction() {
73
    public function test_static_prediction(): void {
74
        global $DB;
74
        global $DB;
Línea 75... Línea 75...
75
 
75
 
76
        $this->resetAfterTest(true);
76
        $this->resetAfterTest(true);
Línea 121... Línea 121...
121
    }
121
    }
Línea 122... Línea 122...
122
 
122
 
123
    /**
123
    /**
124
     * test_model_contexts
124
     * test_model_contexts
125
     */
125
     */
126
    public function test_model_contexts() {
126
    public function test_model_contexts(): void {
Línea 127... Línea 127...
127
        global $DB;
127
        global $DB;
128
 
128
 
Línea 181... Línea 181...
181
     * @param string $predictionsprocessorclass
181
     * @param string $predictionsprocessorclass
182
     * @param array $forcedconfig
182
     * @param array $forcedconfig
183
     * @return void
183
     * @return void
184
     */
184
     */
185
    public function test_ml_training_and_prediction($timesplittingid, $predictedrangeindex, $nranges, $predictionsprocessorclass,
185
    public function test_ml_training_and_prediction($timesplittingid, $predictedrangeindex, $nranges, $predictionsprocessorclass,
186
            $forcedconfig) {
186
            $forcedconfig): void {
187
        global $DB;
187
        global $DB;
Línea 188... Línea 188...
188
 
188
 
Línea 189... Línea 189...
189
        $this->resetAfterTest(true);
189
        $this->resetAfterTest(true);
Línea 356... Línea 356...
356
     *
356
     *
357
     * @param string $predictionsprocessorclass The class name
357
     * @param string $predictionsprocessorclass The class name
358
     * @param array $forcedconfig
358
     * @param array $forcedconfig
359
     * @dataProvider provider_ml_processors
359
     * @dataProvider provider_ml_processors
360
     */
360
     */
361
    public function test_ml_export_import($predictionsprocessorclass, $forcedconfig) {
361
    public function test_ml_export_import($predictionsprocessorclass, $forcedconfig): void {
362
        $this->resetAfterTest(true);
362
        $this->resetAfterTest(true);
Línea 363... Línea 363...
363
 
363
 
364
        $this->set_forced_config($forcedconfig);
364
        $this->set_forced_config($forcedconfig);
Línea 437... Línea 437...
437
     * @param int $classes
437
     * @param int $classes
438
     * @param string $predictionsprocessorclass
438
     * @param string $predictionsprocessorclass
439
     * @param array $forcedconfig
439
     * @param array $forcedconfig
440
     * @return void
440
     * @return void
441
     */
441
     */
442
    public function test_ml_classifiers_return($success, $nsamples, $classes, $predictionsprocessorclass, $forcedconfig) {
442
    public function test_ml_classifiers_return($success, $nsamples, $classes, $predictionsprocessorclass, $forcedconfig): void {
443
        $this->resetAfterTest();
443
        $this->resetAfterTest();
Línea 444... Línea 444...
444
 
444
 
445
        $this->set_forced_config($forcedconfig);
445
        $this->set_forced_config($forcedconfig);
Línea 528... Línea 528...
528
     * @param string $predictionsprocessorclass
528
     * @param string $predictionsprocessorclass
529
     * @param array|null $forcedconfig
529
     * @param array|null $forcedconfig
530
     * @throws coding_exception
530
     * @throws coding_exception
531
     * @throws moodle_exception
531
     * @throws moodle_exception
532
     */
532
     */
533
    public function test_ml_multi_classifier($timesplittingid, $predictionsprocessorclass, $forcedconfig) {
533
    public function test_ml_multi_classifier($timesplittingid, $predictionsprocessorclass, $forcedconfig): void {
534
        global $DB;
534
        global $DB;
Línea 535... Línea 535...
535
 
535
 
536
        $this->resetAfterTest(true);
536
        $this->resetAfterTest(true);
537
        $this->setAdminuser();
537
        $this->setAdminuser();
Línea 601... Línea 601...
601
     * @param string $predictionsprocessorclass
601
     * @param string $predictionsprocessorclass
602
     * @param array $forcedconfig
602
     * @param array $forcedconfig
603
     * @return void
603
     * @return void
604
     */
604
     */
605
    public function test_ml_evaluation_configuration($modelquality, $ncourses, $expected, $predictionsprocessorclass,
605
    public function test_ml_evaluation_configuration($modelquality, $ncourses, $expected, $predictionsprocessorclass,
606
            $forcedconfig) {
606
            $forcedconfig): void {
607
        $this->resetAfterTest(true);
607
        $this->resetAfterTest(true);
Línea 608... Línea 608...
608
 
608
 
609
        $this->set_forced_config($forcedconfig);
609
        $this->set_forced_config($forcedconfig);
Línea 655... Línea 655...
655
     * @dataProvider provider_ml_processors
655
     * @dataProvider provider_ml_processors
656
     * @param  string $predictionsprocessorclass
656
     * @param  string $predictionsprocessorclass
657
     * @param array $forcedconfig
657
     * @param array $forcedconfig
658
     * @return null
658
     * @return null
659
     */
659
     */
660
    public function test_ml_evaluation_trained_model($predictionsprocessorclass, $forcedconfig) {
660
    public function test_ml_evaluation_trained_model($predictionsprocessorclass, $forcedconfig): void {
661
        $this->resetAfterTest(true);
661
        $this->resetAfterTest(true);
Línea 662... Línea 662...
662
 
662
 
663
        $this->set_forced_config($forcedconfig);
663
        $this->set_forced_config($forcedconfig);
Línea 689... Línea 689...
689
    /**
689
    /**
690
     * test_read_indicator_calculations
690
     * test_read_indicator_calculations
691
     *
691
     *
692
     * @return void
692
     * @return void
693
     */
693
     */
694
    public function test_read_indicator_calculations() {
694
    public function test_read_indicator_calculations(): void {
695
        global $DB;
695
        global $DB;
Línea 696... Línea 696...
696
 
696
 
Línea 697... Línea 697...
697
        $this->resetAfterTest(true);
697
        $this->resetAfterTest(true);
Línea 709... Línea 709...
709
    }
709
    }
Línea 710... Línea 710...
710
 
710
 
711
    /**
711
    /**
712
     * test_not_null_samples
712
     * test_not_null_samples
713
     */
713
     */
714
    public function test_not_null_samples() {
714
    public function test_not_null_samples(): void {
Línea 715... Línea 715...
715
        $this->resetAfterTest(true);
715
        $this->resetAfterTest(true);
716
 
716