Exemple #1
0
        public static IDataView GetKcHouseDataView(string dataPath)
        {
            var  dataSchema = "col=Id:TX:0 col=Date:TX:1 col=Label:R4:2 col=Bedrooms:R4:3 col=Bathrooms:R4:4 col=SqftLiving:R4:5 col=SqftLot:R4:6 col=Floors:R4:7 col=Waterfront:R4:8 col=View:R4:9 col=Condition:R4:10 col=Grade:R4:11 col=SqftAbove:R4:12 col=SqftBasement:R4:13 col=YearBuilt:R4:14 col=YearRenovated:R4:15 col=Zipcode:R4:16 col=Lat:R4:17 col=Long:R4:18 col=SqftLiving15:R4:19 col=SqftLot15:R4:20 header+ sep=,";
            var  txtArgs    = new TextLoader.Arguments();
            bool parsed     = CmdParser.ParseArguments(s_environment, dataSchema, txtArgs);

            s_environment.Assert(parsed);
            var txtLoader = new TextLoader(s_environment, txtArgs, new MultiFileSource(dataPath));

            return(txtLoader);
        }