Beispiel #1
0
void testICA(){
    TrivialDataset data;
    data.loadData("../data/minist1_lcn_mlp.bin", "../data/minist1_lcn_label.bin");

    Logistic logi(data.getFeatureNumber(), data.getLabelNumber());
    TrainModel logisticModel(logi);
    logisticModel.train(&data, 0.13, 500, 1000);
}
Beispiel #2
0
void testGPCRTraining(){
    TrivialDataset data;
    data.loadData("../data/GPCR/GPCR_Binary.data", "../data/GPCR/GPCR_Binary.label");
    data.rowNormalize();

    Logistic logi(data.getFeatureNumber(), data.getLabelNumber());
    TrainModel logisticModel(logi);
    logisticModel.train(&data, 0.01, 1, 1000, 30);
}
Beispiel #3
0
void testWFICA(){
    TrivialDataset data;
    data.loadData("../data/minist1_lcn_mlp.bin", "../data/minist1_lcn_label.bin");
    MLP mlp; 

    MLPLayer *firstLayer = new TanhLayer(data.getFeatureNumber(), 500);
    Logistic *secondLayer = new Logistic(500, data.getLabelNumber());
    mlp.addLayer(firstLayer);
    mlp.addLayer(secondLayer);

    TrainModel mlpModel(mlp);
    mlpModel.train(&data, 0.01, 20, 1000);
}