double function ( double [ ] arg0 ) { prediction = 0 ; for ( int loc0 = 0 ; loc0 < arg0 . length ; loc0 ++ ) { prediction += weights [ loc0 ] * arg0 [ loc0 ] ; } if ( useBias ) prediction += bias ; return prediction ; }
makes a prediction for the given feature vector . the prediction is the dot product of the weight vector with the feature vector . concode_field_sep int numFeatures concode_elem_sep double alpha concode_elem_sep double bias concode_elem_sep double prediction concode_elem_sep double[] weights concode_elem_sep boolean useBias concode_field_sep void updateWeightsDelta concode_elem_sep double[] getWeights concode_elem_sep double getPrediction concode_elem_sep boolean getUseBias concode_elem_sep void setAlpha concode_elem_sep double getAlpha