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
Copy file name to clipboardExpand all lines: README.md
+23-13Lines changed: 23 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,26 +4,21 @@ This is a multilayer feed forward neural network for text sentiment classificati
4
4
-**Difficulty:** Hard
5
5
-**Training time:** Hours
6
6
7
+
## Installation
8
+
Clone the project locally using [Composer](https://getcomposer.org/):
9
+
```sh
10
+
$ composer create-project rubix/sentiment
11
+
```
12
+
13
+
> **Note:** Installation may take longer than usual because of the large dataset.
14
+
7
15
## Requirements
8
16
-[PHP](https://php.net) 7.2 or above
9
17
10
18
#### Recommended
11
19
-[Tensor extension](https://github.com/RubixML/Tensor) for faster training and inference
12
20
- 12G of system memory or more
13
21
14
-
## Installation
15
-
Clone the project locally with [Git](https://git-scm.com/):
16
-
```sh
17
-
$ git clone https://github.com/RubixML/Sentiment
18
-
```
19
-
20
-
> **Note:** Cloning may take longer than usual because of the large dataset.
21
-
22
-
Install project dependencies with [Composer](http://getcomposer.org/):
23
-
```sh
24
-
$ composer install
25
-
```
26
-
27
22
## Tutorial
28
23
29
24
### Introduction
@@ -142,6 +137,11 @@ Finally, we save the model so we can load it later in our other scripts.
142
137
$estimator->save();
143
138
```
144
139
140
+
Now you're ready to run the training script from the command line.
141
+
```php
142
+
$ php train.php
143
+
```
144
+
145
145
### Cross Validation
146
146
To test the generalization performance of the trained network we'll use the testing samples provided to us to generate predictions and then analyze them compared to their ground-truth labels using a cross validation report. Note that we do not use any training data for cross validation because we want to test the model on samples it has never seen before.
147
147
@@ -202,6 +202,11 @@ To generate the report, pass in the predictions along with the labels from the t
0 commit comments