
hex.schemas.CoxPHModelV3 Maven / Gradle / Ivy
package hex.schemas;
import hex.coxph.CoxPHModel;
import water.Key;
import water.api.schemas3.ModelOutputSchemaV3;
import water.api.schemas3.ModelSchemaV3;
public class CoxPHModelV3 extends ModelSchemaV3 {
public static final class CoxPHModelOutputV3 extends ModelOutputSchemaV3 {
//FIXME
//add output fields
} // CoxPHModelOutputV2
// TOOD: I think we can implement the following two in ModelSchemaV3, using reflection on the type parameters.
public CoxPHV3.CoxPHParametersV3 createParametersSchema() { return new CoxPHV3.CoxPHParametersV3(); }
public CoxPHModelOutputV3 createOutputSchema() { return new CoxPHModelOutputV3(); }
//==========================
// Custom adapters go here
// Version&Schema-specific filling into the impl
@Override public CoxPHModel createImpl() {
CoxPHModel.CoxPHParameters parms = parameters.createImpl();
return new CoxPHModel(Key.make() /*dest*/, parms, new CoxPHModel.CoxPHOutput(null));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy