Skip to content

Commit d510b75

Browse files
Merge pull request #8 from DrDub/master
Updated to ML 2.0
2 parents d988c8d + 0ccd45e commit d510b75

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
}
2121
],
2222
"require": {
23-
"php": ">=7.4",
24-
"rubix/ml": "^1.0.1"
23+
"php": ">=8.1",
24+
"rubix/ml": "^2.2"
2525
},
2626
"scripts": {
2727
"predict": "@php predict.php",

train.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
$estimator = new PersistentModel(
4242
new Pipeline([
4343
new TextNormalizer(),
44-
new WordCountVectorizer(10000, 0.00008, 0.4, new NGram(1, 2)),
44+
new WordCountVectorizer(10000, 5, 0.4, new NGram(1, 2)),
4545
new TfIdfTransformer(),
4646
new ZScaleStandardizer(),
4747
], new MultilayerPerceptron([

0 commit comments

Comments
 (0)