November 2018
Intermediate to advanced
300 pages
7h 42m
English
Now, we will quickly look at how Encog can be used to make a regression model. We will be using the dataset that we used in a previous section, Loading the data. The following steps show how to make the model:
File datafile = new File("data/ENB2012_data.csv");VersatileDataSource source = new CSVDataSource(datafile, true, CSVFormat.DECIMAL_POINT);VersatileMLDataSet data = new VersatileMLDataSet(source); data.defineSourceColumn("X1", 0, ColumnType.continuous); data.defineSourceColumn("X2", 1, ColumnType.continuous); data.defineSourceColumn("X3", 2, ColumnType.continuous); data.defineSourceColumn("X4", 3, ColumnType.continuous);data.defineSourceColumn("X5", ...