bool TrainingSet::operator!=(const TrainingSet &trset) { if(trset.getInputs() == inputs && trset.getTargets() == targets){ return false; } return true; }
void PruebaPantalla::on_DotMatrixRepresentationButton_clicked() { QString openDir = QFileDialog::getOpenFileName(this, //widget "Abrir conjunto de entrenamiento", //caption "/home/edixon/programacion/INSYDE//samples/TrainingSets", //dir "Conjunto de entrenamiento (*.tsf)", //filter new QString("Conjunto de entrenamiento (*.tsf)")); if(openDir == "") return; TrainingSet *ts = new TrainingSet(openDir); DotMatrixRepresentation *dmr = new DotMatrixRepresentation(ts->getInputs()[0]); dmr->show(); }
TrainingSet::TrainingSet(const TrainingSet &ts, QObject *parent) : QObject(parent) { initTS(ts.getInputs(), ts.getTargets()); }