Beispiel #1
0
    public static CudaDataSet <int> ReadPenBase()
    {
        var PenDescription = new Type[] {
            Type.param,
            Type.param,
            Type.param,
            Type.param,
            Type.param,
            Type.param,
            Type.param,
            Type.param,
            Type.param,
            Type.param,
            Type.param,
            Type.param,
            Type.param,
            Type.param,
            Type.param,
            Type.param,
            Type.label,
        };

        LabelReader reader = new LabelReader(PenDescription);

        reader.ReadFile("dataSets/penbased.csv");
        return(reader.DataSet);
    }
Beispiel #2
0
    public static CudaDataSet <int> readIris()
    {
        var irisDescription = new Type[] {
            Type.param,
            Type.param,
            Type.param,
            Type.param,
            Type.label
        };

        LabelReader reader = new LabelReader(irisDescription);

        reader.ReadFile("dataSets/iris.csv");
        return(reader.DataSet);
    }
Beispiel #3
0
    public static CudaDataSet <int> ReadNormalizedIris()
    {
        var irisDescription = new Type[] {
            Type.param,
            Type.param,
            Type.param,
            Type.param,
            Type.label
        };

        LabelReader reader = new LabelReader(irisDescription);

        //reader.Separator = '\t';
        reader.ReadFile("dataSets/iris_std_sh.txt");
        return(reader.DataSet);
    }
Beispiel #4
0
    public static CudaDataSet <int> ReadMagic()
    {
        var magidDescription = new Type[] {
            Type.param,
            Type.param,
            Type.param,
            Type.param,
            Type.param,
            Type.param,
            Type.param,
            Type.param,
            Type.param,
            Type.param,
            Type.label,
        };

        LabelReader reader = new LabelReader(magidDescription);

        reader.ReadFile("dataSets/magic.csv");
        return(reader.DataSet);
    }
Beispiel #5
0
    public static CudaDataSet <int> readPoker()
    {
        var pokerDescription = new Type[] {
            Type.param,
            Type.param,
            Type.param,
            Type.param,
            Type.param,
            Type.param,
            Type.param,
            Type.param,
            Type.param,
            Type.param,
            Type.label
        };



        LabelReader reader = new LabelReader(pokerDescription);

        reader.ReadFile("dataSets/poker.csv");
        return(reader.DataSet);
    }