Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
*
* ## Notes
*
* - Downstream consumers of this mapping should **not** rely on specific integer values (e.g., `HINGE == 0`). Instead, the object should be used in an opaque manner.
* - Downstream consumers of this mapping should **not** rely on specific integer values (e.g., `EPSILON_INSENSITIVE == 0`). Instead, the object should be used in an opaque manner.
* - The main purpose of this function is JavaScript and C inter-operation.
*
* @returns {Object} object mapping supported loss functions to integer values
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ bench( format( '%s::string', pkg ), function benchmark( b ) {
values = [
'elasticnet',
'l1',
'l2'
'l2',
'none'
];

b.tic();
Expand All @@ -64,7 +65,8 @@ bench( format( '%s::integer', pkg ), function benchmark( b ) {
values = [
str2enum( 'elasticnet' ),
str2enum( 'l1' ),
str2enum( 'l2' )
str2enum( 'l2' ),
str2enum( 'none' )
];

b.tic();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ bench( format( '%s::string', pkg ), function benchmark( b ) {
values = [
'elasticnet',
'l1',
'l2'
'l2',
'none'
];

b.tic();
Expand All @@ -64,7 +65,8 @@ bench( format( '%s::integer', pkg ), function benchmark( b ) {
values = [
str2enum( 'elasticnet' ),
str2enum( 'l1' ),
str2enum( 'l2' )
str2enum( 'l2' ),
str2enum( 'none' )
];

b.tic();
Expand Down
Loading