Exemple #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);
    }
Exemple #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);
    }
Exemple #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);
    }
Exemple #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);
    }
Exemple #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);
    }