ai.libs.reduction.ensemble.simple.MySQLEnsembleOfSimpleOneStepReductionsExperiment Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mlplan-ext-reduction Show documentation
Show all versions of mlplan-ext-reduction Show documentation
This project provides an implementation of the AutoML tool ML-Plan.
package ai.libs.reduction.ensemble.simple;
public class MySQLEnsembleOfSimpleOneStepReductionsExperiment {
private final int id;
private final EnsembleOfSimpleOneStepReductionsExperiment experiment;
public MySQLEnsembleOfSimpleOneStepReductionsExperiment(int id, EnsembleOfSimpleOneStepReductionsExperiment experiment) {
super();
this.id = id;
this.experiment = experiment;
}
public int getId() {
return id;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((experiment == null) ? 0 : experiment.hashCode());
result = prime * result + id;
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
MySQLEnsembleOfSimpleOneStepReductionsExperiment other = (MySQLEnsembleOfSimpleOneStepReductionsExperiment) obj;
if (experiment == null) {
if (other.experiment != null)
return false;
} else if (!experiment.equals(other.experiment))
return false;
if (id != other.id)
return false;
return true;
}
public EnsembleOfSimpleOneStepReductionsExperiment getExperiment() {
return experiment;
}
}