You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Muncul error kaya gini gan Undefined index: computed
Kodenya kaya gini
$data = [
[
'text' => 'Filmnya bagus, saya suka',
'class' => 'positif'
],
[
'text' => 'Filmnya menarik, aktingnya bagus',
'class' => 'positif'
],
[
'text' => 'Saya suka film ini sangat keren',
'class' => 'positif'
],
[
'text' => 'Film jelek, aktingnya payah.',
'class' => 'negatif'
],
[
'text' => 'Kecewa, ini adalah film terburuk yang pernah saya tonton',
'class' => 'negatif'
],
];
$nb = new NaiveBayes();
// mendefinisikan class target sesuai dengan yang ada pada data training.
$nb->setClass(['positif', 'negatif']);
// proses training
$nb->training($data);
// pengujian
echo $nb->predict('makin gak beres akibat uu kpk baru tahun kasus tak selesai kpk bisa henti kasus korupsi dalam tempo kurang dari');`
```
The text was updated successfully, but these errors were encountered:
Muncul error kaya gini gan
Undefined index: computed
Kodenya kaya gini
The text was updated successfully, but these errors were encountered: