Package quickml.supervised

Examples of quickml.supervised.PredictiveModel


public class WeightedAUCCrossValLossFunctionTest {

    @Test(expected = RuntimeException.class)
    public void testOnlySupportBinaryClassifications() {
        WeightedAUCCrossValLossFunction crossValLoss = new WeightedAUCCrossValLossFunction("test1");
        PredictiveModel predictiveModel = Mockito.mock(PredictiveModel.class);
        Instance<AttributesMap> instance = Mockito.mock(Instance.class);
        Mockito.when(instance.getLabel()).thenReturn("instance1");
        Mockito.when(instance.getWeight()).thenReturn(1.0);
        Instance<AttributesMap> instance2 = Mockito.mock(Instance.class);
        Mockito.when(instance2.getLabel()).thenReturn("instance2");
View Full Code Here

TOP

Related Classes of quickml.supervised.PredictiveModel

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.