gridSearch

Performs a grid search of parameter pairs for the a classifier (Y-axis, default is LinearRegression with the "Ridge" parameter) and the PLSFilter (X-axis, "# of Components") and chooses the best pair found for the actual predicting. The initial grid is worked on with 2-fold CV to determine the values of the parameter pairs for the selected type of evaluation (e.g., accuracy). The best point in the grid is then taken and a 10-fold CV is performed with the adjacent parameter pairs. If a better pair is found, then this will act as new center and another 10-fold CV will be performed (kind of hill-climbing). This process is repeated until no better pair is found or the best pair is on the border of the grid. In case the best pair is on the border, one can let GridSearch automatically extend the grid and continue the search. Check out the properties 'gridIsExtendable' (option '-extend-grid') and 'maxGridExtensions' (option '-max-grid-extensions <num>'). GridSearch can handle doubles, integers (values are just cast to int) and booleans (0 is false, otherwise true). float, char and long are supported as well. The best filter/classifier setup can be accessed after the buildClassifier call via the getBestFilter/getBestClassifier methods. Note on the implementation: after the data has been passed through the filter, a default NumericCleaner filter is applied to the data in order to avoid numbers that are getting too small and might produce NaNs in other schemes.

License

License

Categories

Categories

Weka Business Logic Libraries Machine Learning Search
GroupId

GroupId

nz.ac.waikato.cms.weka
ArtifactId

ArtifactId

gridSearch
Last Version

Last Version

1.0.12
Release Date

Release Date

Type

Type

jar
Description

Description

gridSearch
Performs a grid search of parameter pairs for the a classifier (Y-axis, default is LinearRegression with the "Ridge" parameter) and the PLSFilter (X-axis, "# of Components") and chooses the best pair found for the actual predicting. The initial grid is worked on with 2-fold CV to determine the values of the parameter pairs for the selected type of evaluation (e.g., accuracy). The best point in the grid is then taken and a 10-fold CV is performed with the adjacent parameter pairs. If a better pair is found, then this will act as new center and another 10-fold CV will be performed (kind of hill-climbing). This process is repeated until no better pair is found or the best pair is on the border of the grid. In case the best pair is on the border, one can let GridSearch automatically extend the grid and continue the search. Check out the properties 'gridIsExtendable' (option '-extend-grid') and 'maxGridExtensions' (option '-max-grid-extensions <num>'). GridSearch can handle doubles, integers (values are just cast to int) and booleans (0 is false, otherwise true). float, char and long are supported as well. The best filter/classifier setup can be accessed after the buildClassifier call via the getBestFilter/getBestClassifier methods. Note on the implementation: after the data has been passed through the filter, a default NumericCleaner filter is applied to the data in order to avoid numbers that are getting too small and might produce NaNs in other schemes.
Project URL

Project URL

http://weka.sourceforge.net/doc.packages/gridSearch
Project Organization

Project Organization

University of Waikato, Hamilton, NZ
Source Code Management

Source Code Management

https://svn.cms.waikato.ac.nz/svn/weka/tags/gridSearch-1.0.12

Download gridSearch

How to add to project

<!-- https://jarcasting.com/artifacts/nz.ac.waikato.cms.weka/gridSearch/ -->
<dependency>
    <groupId>nz.ac.waikato.cms.weka</groupId>
    <artifactId>gridSearch</artifactId>
    <version>1.0.12</version>
</dependency>
// https://jarcasting.com/artifacts/nz.ac.waikato.cms.weka/gridSearch/
implementation 'nz.ac.waikato.cms.weka:gridSearch:1.0.12'
// https://jarcasting.com/artifacts/nz.ac.waikato.cms.weka/gridSearch/
implementation ("nz.ac.waikato.cms.weka:gridSearch:1.0.12")
'nz.ac.waikato.cms.weka:gridSearch:jar:1.0.12'
<dependency org="nz.ac.waikato.cms.weka" name="gridSearch" rev="1.0.12">
  <artifact name="gridSearch" type="jar" />
</dependency>
@Grapes(
@Grab(group='nz.ac.waikato.cms.weka', module='gridSearch', version='1.0.12')
)
libraryDependencies += "nz.ac.waikato.cms.weka" % "gridSearch" % "1.0.12"
[nz.ac.waikato.cms.weka/gridSearch "1.0.12"]

Dependencies

compile (2)

Group / Artifact Type Version
nz.ac.waikato.cms.weka : weka-dev jar [3.7.12,)
nz.ac.waikato.cms.weka : partialLeastSquares jar [1.0.0,)

test (2)

Group / Artifact Type Version
nz.ac.waikato.cms.weka : weka-dev test-jar [3.7.12,)
junit : junit jar 3.8.2

Project Modules

There are no modules declared in this project.

Versions

Version
1.0.12
1.0.11
1.0.10
1.0.9
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4