|
| list[float] | scores (self, dict[int, float] vector) |
| list[float] | probabilities (self, dict[int, float] vector) |
| tuple[str, dict[str, float]] | predict (self, str command) |
A three-class softmax over the hashed n-gram space.
Definition at line 140 of file token_classifier.py.
◆ predict()
| tuple[str, dict[str, float]] token_classifier.Model.predict |
( |
| self, |
|
|
str | command ) |
The predicted verdict for *command* and the full forecast.
Definition at line 164 of file token_classifier.py.
◆ probabilities()
| list[float] token_classifier.Model.probabilities |
( |
| self, |
|
|
dict[int, float] | vector ) |
◆ scores()
| list[float] token_classifier.Model.scores |
( |
| self, |
|
|
dict[int, float] | vector ) |
◆ biases
| list token_classifier.Model.biases [float] |
|
static |
◆ weights
| list token_classifier.Model.weights [list[float]] |
|
static |
The documentation for this class was generated from the following file: