function MLCall(colsArray)
        {
            this.columns = colsArray;
            this.vals1 = [];
            this.vals2 = [];
            this.GetMLObj = function () { return { 'Inputs' : { 'input1' : { 'ColumnNames':this.columns, 'Values': [ this.vals1, this.vals2 ]  } }, 'GlobalParameters': {} }; };
            this.init = function () { 
                for(var loop=0; loop<this.columns.length; loop++)
                {
                    this.vals2.push('0');
                }
            };
        }
//This prototype sets up an object that can emit a properly formatted Azure ML call
This prototype sets up an object that can emit a properly formatted Azure ML call
This prototype sets up an object that can emit a properly formatted Azure ML call
function MLCall(colsArray)
        {
            this.columns = colsArray;
            this.vals1 = [];
            this.vals2 = [];
            this.GetMLObj = function () { return { 'Inputs' : { 'input1' : { 'ColumnNames':this.columns, 'Values': [ this.vals1, this.vals2 ]  } }, 'GlobalParameters': {} }; };
            this.init = function () { 
                for(var loop=0; loop<this.columns.length; loop++)
                {
                    this.vals2.push('0');
                }
            };
        }
function MLCall ( colsArray ) { this . columns = colsArray ; this . vals1 = [ ] ; this . vals2 = [ ] ; this . GetMLObj = function ( ) { return { 'Inputs' : { 'input1' : { 'ColumnNames' : this . columns , 'Values' : [ this . vals1 , this . vals2 ] } } , 'GlobalParameters' : { } } ; } ; this . init = function ( ) { for ( var loop = 0 ; loop < this . columns . length ; loop ++ ) { this . vals2 . push ( '0' ) ; } } ; }
This prototype sets up an object that can emit a properly formatted Azure ML call
This prototype sets up an object that can emit a properly formatted Azure ML call