Skip to content

Commit b3539bb

Browse files
committed
Auto-generated commit
1 parent 718a8c2 commit b3539bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ function incrBinaryClassification( N, options ) {
191191
if ( arguments.length > 1 ) {
192192
if ( type === 'probability' ) {
193193
if ( opts.loss !== 'log' && opts.loss !== 'modifiedHuber' ) {
194-
throw new Error( format( 'invalid argument. Second argument is incompatible with model loss function. Probability predictions are only supported when the loss function is either `log` or `modifiedHuber`. Model loss function: `%s`.', opts.loss ) );
194+
throw new Error( format( 'invalid argument. Second argument is incompatible with model loss function. Probability predictions are only supported when the loss function is one of the following: "%s". Model loss function: `%s`.', [ 'log', 'modifiedHuber' ].join( '", "' ), opts.loss ) );
195195
}
196196
} else if ( type !== 'label' && type !== 'linear' ) {
197197
throw new TypeError( format( 'invalid argument. Second argument must be a string value equal to either "label", "probability", or "linear". Value: `%s`.', type ) );

0 commit comments

Comments
 (0)