isNumericType() public static method

public static isNumericType ( this o ) : bool
o this
return bool
Example #1
0
        /// <summary>
        /// Check if this is a regression model
        /// </summary>
        /// <returns> {boolean} True if all the predictions are numbers. </returns>
        private bool is_regression()
        {
            int index, len;
            Dictionary <object, object> prediction;

            for (index = 0, len = this.predictions.Length; index < len; index++)
            {
                prediction = this.predictions[index];
                if (!(Utils.isNumericType(prediction["prediction"])))
                {
                    return(false);
                }
            }
            return(true);
        }