Package hivemall.io.WeightValue

Examples of hivemall.io.WeightValue.WeightValueParamsF1


        }
        scaled_sum_sqgrad += g_g;

        float coeff = eta(scaled_sum_sqgrad) * gradient;
        float new_w = old_w + (coeff * xi);
        return new WeightValueParamsF1(new_w, scaled_sum_sqgrad);
    }
View Full Code Here


            if(sum_of_squared_delta_x != null) {
                return (T) new WeightValueParamsF2(weights[i], sum_of_squared_gradients[i], sum_of_squared_delta_x[i]);
            } else if(sum_of_gradients != null) {
                return (T) new WeightValueParamsF2(weights[i], sum_of_squared_gradients[i], sum_of_gradients[i]);
            } else {
                return (T) new WeightValueParamsF1(weights[i], sum_of_squared_gradients[i]);
            }
        } else if(covars != null) {
            return (T) new WeightValueWithCovar(weights[i], covars[i]);
        } else {
            return (T) new WeightValue(weights[i]);
View Full Code Here

            if(sum_of_squared_delta_x != null) {
                return (T) new WeightValueParamsF2(getWeight(i), sum_of_squared_gradients[i], sum_of_squared_delta_x[i]);
            } else if(sum_of_gradients != null) {
                return (T) new WeightValueParamsF2(getWeight(i), sum_of_squared_gradients[i], sum_of_gradients[i]);
            } else {
                return (T) new WeightValueParamsF1(getWeight(i), sum_of_squared_gradients[i]);
            }
        } else if(covars != null) {
            return (T) new WeightValueWithCovar(getWeight(i), getCovar(i));
        } else {
            return (T) new WeightValue(getWeight(i));
View Full Code Here

TOP

Related Classes of hivemall.io.WeightValue.WeightValueParamsF1

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.