File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
echo " Fixing src/ folder"
3
- php-cs-fixer fix src / --level=symfony
3
+ php-cs-fixer fix classification / --level=symfony
4
4
5
5
echo " Fixing tests/ folder"
6
- php-cs-fixer fix tests / --level=symfony
6
+ php-cs-fixer fix regression / --level=symfony
Original file line number Diff line number Diff line change 31
31
32
32
$ dataset = new ArrayDataset ($ samples , $ dataset ->getTargets ());
33
33
34
- $ randomSplit = new StratifiedRandomSplit ($ dataset , 0.1 );
34
+ $ randomSplit = new StratifiedRandomSplit ($ dataset , 0.1 );
35
35
36
36
$ classifier = new SVC (Kernel::RBF , 10000 );
37
37
$ classifier ->train ($ randomSplit ->getTrainSamples (), $ randomSplit ->getTrainLabels ());
38
38
39
39
$ predictedLabels = $ classifier ->predict ($ randomSplit ->getTestSamples ());
40
40
41
- echo 'Accuracy: ' . Accuracy::score ($ randomSplit ->getTestLabels (), $ predictedLabels );
41
+ echo 'Accuracy: ' . Accuracy::score ($ randomSplit ->getTestLabels (), $ predictedLabels );
Original file line number Diff line number Diff line change 24
24
$ target = round ($ target , 0 );
25
25
}
26
26
27
- echo 'Accuracy: ' . Accuracy::score ($ split ->getTestLabels (), $ predicted );
27
+ echo 'Accuracy: ' . Accuracy::score ($ split ->getTestLabels (), $ predicted );
You can’t perform that action at this time.
0 commit comments