Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Softmax regressor json keys unit tests added
- Loading branch information
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
38 changes: 38 additions & 0 deletions
38
test/classifier/softmax_regressor/softmax_regressor_json_keys_test.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import 'package:ml_algo/src/classifier/softmax_regressor/softmax_regressor_json_keys.dart'; | ||
import 'package:test/test.dart'; | ||
|
||
void main() { | ||
group('Softmax regressor json keys', () { | ||
test('should contain a proper key for class names field', () { | ||
expect(softmaxRegressorClassNamesJsonKey, 'CN'); | ||
}); | ||
|
||
test('should contain a proper key for fit intercept field', () { | ||
expect(softmaxRegressorFitInterceptJsonKey, 'FI'); | ||
}); | ||
|
||
test('should contain a proper key for intercept scale field', () { | ||
expect(softmaxRegressorInterceptScaleJsonKey, 'IS'); | ||
}); | ||
|
||
test('should contain a proper key for coefficients by classes field', () { | ||
expect(softmaxRegressorCoefficientsByClassesJsonKey, 'CBC'); | ||
}); | ||
|
||
test('should contain a proper key for dtype field', () { | ||
expect(softmaxRegressorDTypeJsonKey, 'DT'); | ||
}); | ||
|
||
test('should contain a proper key for link function feld', () { | ||
expect(softmaxRegressorLinkFunctionJsonKey, 'LF'); | ||
}); | ||
|
||
test('should contain a proper key for positive label field', () { | ||
expect(softmaxRegressorPositiveLabelJsonKey, 'PL'); | ||
}); | ||
|
||
test('should contain a proper key for negative label field', () { | ||
expect(softmaxRegressorNegativeLabelJsonKey, 'NL'); | ||
}); | ||
}); | ||
} |