hex.schemas.PCAModelV3 Maven / Gradle / Ivy
package hex.schemas;
import hex.pca.PCAModel;
import water.api.*;
public class PCAModelV3 extends ModelSchema {
public static final class PCAModelOutputV3 extends ModelOutputSchema {
// Output fields; input fields are in the parameters list
// TODO: This field is redundant. Remove in next API change.
@API(help = "Standard deviations")
public double[] std_deviation;
@API(help = "Importance of each principal component")
public TwoDimTableBase pc_importance;
@API(help = "Principal components matrix")
public TwoDimTableBase eigenvectors;
@API(help = "Frame key for loading matrix")
public KeyV3.FrameKeyV3 loading_key;
}
// TODO: I think we can implement the following two in ModelSchema, using reflection on the type parameters.
public PCAV3.PCAParametersV3 createParametersSchema() { return new PCAV3.PCAParametersV3(); }
public PCAModelOutputV3 createOutputSchema() { return new PCAModelOutputV3(); }
// Version&Schema-specific filling into the impl
@Override public PCAModel createImpl() {
PCAModel.PCAParameters parms = parameters.createImpl();
return new PCAModel( model_id.key(), parms, null );
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy