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
-[Tensor extension](https://github.com/RubixML/Tensor) for faster training and inference
@@ -91,7 +91,11 @@ $estimator->train($dataset);
91
91
The `steps()` method on Logistic Regression outputs the value of the [Cross Entropy](https://docs.rubixml.com/latest/neural-network/cost-functions/cross-entropy.html) cost function at each epoch from the last training session. You can plot those values by dumping them to a CSV file and then importing them into your favorite plotting software such as [Plotly](https://plot.ly/) or [Tableu](https://public.tableau.com/en-us/s/).
92
92
93
93
```php
94
-
$losses = $estimator->steps();
94
+
use Rubix\ML\Extractors\CSV;
95
+
96
+
$extractor = new CSV('progress.csv', true);
97
+
98
+
$extractor->export($estimator->steps());
95
99
```
96
100
97
101
You'll notice that the loss should be decreasing at each epoch and changes in the loss value should get smaller the closer the learner is to converging on the minimum of the cost function.
@@ -270,7 +274,9 @@ Here is the output of the first two columns in the credit card dataset. We can s
270
274
In addition, we'll save the stats to a JSON file so we can reference it later.
0 commit comments