1
0
mirror of https://github.com/sjwhitworth/golearn.git synced 2025-04-25 13:48:49 +08:00

50 Commits

Author SHA1 Message Date
Eli Davis
0ae13fe821
Example now pulls from correct filepath for dataset 2021-10-05 13:17:23 -06:00
Ayush
e3a09cfa34 File paths 2020-09-08 14:55:47 +05:30
Ayush
5a66fb940f Adding Example Script 2020-08-27 18:00:37 +05:30
Ayush
452acbabb3 Adding Isolation + Fixing previous import issue 2020-08-24 14:26:45 +05:30
Ayush
e55a329d8a Fixing Bug 2020-08-01 15:32:59 +05:30
Ayush
8ae385ca25 Complexity Analysis for Algorithm 2020-08-01 13:16:34 +05:30
Ayush
9d1ac82a40 Optimizing Loss Calculation 2020-08-01 11:25:53 +05:30
Ayush
7276108661 Adding Documentation
Comparision in performance and implementation with sklearn.
2020-07-30 11:48:50 +05:30
Ayush
91a27e3ca0 Fixing Comments 2020-07-27 15:03:12 +05:30
Ayush
abed408f9b Updating Dataset + Naming 2020-07-26 11:21:20 +05:30
Ayush
b16b60fcb5 Adding Example script for CART 2020-07-23 16:45:31 +05:30
FrozenKP
403f605ae1 add "linear" to NewKnnClassifier 2017-04-19 00:23:57 +08:00
Yi-Hsien Chen
e17aa8deb6 fix bug of tree.Fit( testData ).
change testData to trainData
2017-03-23 11:42:07 -05:00
Tim Lebel
1d77ccdec6 Return errors allowing KNNClassifier to implement Classifier 2016-10-10 19:59:47 -07:00
Stephen Whitworth
183c672cfe Hopefully, should build now. 2015-01-27 12:32:19 +00:00
Richard Townsend
04e6c8a414 Rebasing against master 2015-01-15 22:54:16 +00:00
Ross Hendrickson
5c302a11ea Add average perceptron file
Rough out logic flow for an average perceptron

Fleshed out example data. Working on FixedDataGrid
support.

Dont use Binary use Float

Update processData to use base helpers to read csv

Move class to end of feature list

Add test for processData

process data to instances

Create path fixed

Add test around Fit. First steps

Modified example, added tests, small fixes
2015-01-15 22:54:16 +00:00
Stephen Whitworth
353cd38e7c Merge pull request #98 from Sentimentron/dense-staging
New DenseInstances conversion function
2014-11-21 13:53:52 +00:00
Stephen Whitworth
7ea42ac80b Merge pull request #101 from Sentimentron/arff-staging
ARFF import/export, CSV export, lossless serialisation
2014-11-21 13:53:43 +00:00
Stephen Whitworth
9c7049ba89 Merge pull request #90 from Sentimentron/cross-fold-staging
Cross-fold validation
2014-11-21 13:53:29 +00:00
Richard Townsend
e30ff6580a ARFF import/export, CSV export, serialisation
* Only numeric and categorical ARFF attributes are currently supported.
* Only the dense version of the ARFF format is supported.
* Compressed format is .tar.gz file which should allow extensibility.
    * Attributes stored using JSON representations.
* Also offers smarter estimation of the precision of numeric Attributes.
* Also adds support for writing instances to CSV
2014-11-13 20:09:00 +00:00
Richard Townsend
6929052af0 base: conversion to DenseInstances via DenseCopyOf 2014-10-30 22:10:39 +00:00
Richard Townsend
b2f5b2840d Cross-fold validation 2014-10-26 17:48:48 +00:00
Richard Townsend
7ba57fe6df trees: Handling FloatAttributes.
This patch adds:

	* Gini index and information gain ratio as
           DecisionTree split options;
	* handling for numeric Attributes (split point
           chosen naïvely on the basis of maximum entropy);
	* A couple of additional utility functions in base/
	* A new dataset (see sources.txt) for testing.

Performance on Iris performs markedly without discretisation.
2014-10-26 17:40:38 +00:00
Richard Townsend
981d43f1dd Adds support for multi-class linear SVMs.
This patch
  * Adds a one-vs-all meta classifier into meta/
  * Adds a LinearSVC (essentially the same as LogisticRegression
    but with different libsvm parameters) to linear_models/
  * Adds a MultiLinearSVC into ensemble/ for predicting
    CategoricalAttribute  classes with the LinearSVC
  * Adds a new example dataset based on classifying article headlines.

The example dataset is drawn from WikiNews, and consists of an average,
min and max Word2Vec representation of article headlines from three
categories. The Word2Vec model was computed offline using gensim.
2014-10-05 11:15:41 +01:00
Richard Townsend
91cfee0e0e Adding a high-dimensional feature set 2014-09-19 23:03:35 +01:00
Amit Kumar Gupta
1809a8b358 RandomForest returns error when fitting data with fewer features than the RandomForest plans to use
- BaseClassifier Predict and Fit methods return errors
- go fmt ./...

Conflicts:
	ensemble/randomforest.go
	ensemble/randomforest_test.go
	trees/tree_test.go
2014-08-22 13:39:29 +00:00
Amit Kumar Gupta
529b3bcaa5 Avoid renaming packages on import 2014-08-22 13:39:29 +00:00
Amit Kumar Gupta
947ee8380e Return error instead of panicking when unable to get confusion matrix 2014-08-22 13:39:29 +00:00
Amit Kumar Gupta
21bb2fc9fa Remove redundant import renames 2014-08-22 07:21:24 +00:00
Richard Townsend
f9c1e24e5b neural: stop-gap support for neural networks 2014-08-09 19:27:20 +01:00
Richard Townsend
47341b2869 base: Cleaned up duplicate Attribute resolution functions 2014-08-03 15:17:20 +01:00
Richard Townsend
a9028b8174 examples: merge from v2-instances 2014-08-03 15:16:58 +01:00
Niclas Jern
3fd2c95bcd Added missing csv newlines. 2014-07-19 16:06:10 +03:00
Niclas Jern
7c4bb5c81c Added examples used in linear regression tests. 2014-07-19 15:59:55 +03:00
Remo Hertig
f77c1dcde0 use multiple return values instead of an array in InstancesTrainTestSplit 2014-06-06 21:33:17 +02:00
Stephen Whitworth
4fa0698748 Merge pull request #33 from Sentimentron/randomforests-upstream
ID3 and random decision trees and random forests
2014-05-24 10:01:38 +01:00
Richard Townsend
889fec4419 Examples for RandomForest, ID3 and Random trees 2014-05-19 12:42:03 +01:00
Stephen Whitworth
b70e2a318a Fixing up stuff for Travis 2014-05-17 21:41:10 +01:00
Stephen Whitworth
22ab4092e7 Fixing up stuff for Travis 2014-05-17 21:33:48 +01:00
Richard Townsend
a2c67592df Adds Instances and Attributes type
* Refactors KNNClassifier to use them
* csv handling moved back into base due to a circular dependency
* Also adds the datasets used to test CSV handling
2014-05-13 22:08:11 +01:00
Stephen Whitworth
1ade0afca6 Refactored KNN to implement the estimator interface 2014-05-05 22:41:55 +01:00
Stephen Whitworth
822b4c389f Finished an implementation of KNN 2014-05-03 23:08:43 +01:00
Stephen Whitworth
4fead571ae Refactored the KNN regressor 2014-05-01 21:20:44 +01:00
Stephen Whitworth
8f1de1ba2c Refactoring some stuff 2014-05-01 19:56:30 +01:00
Bert Chang
0c2187763f Add package file, rewrite import. 2014-04-30 22:13:07 +08:00
Stephen Whitworth
e1663eefa8 Starting interface design 2014-04-30 08:57:13 +01:00
Stephen Whitworth
0e86db820e Added KNN Regressor 2014-01-05 00:23:31 +00:00
Stephen Whitworth
9815b00e77 Created a KNN example 2014-01-04 19:33:48 +00:00
Stephen Whitworth
334c12385e Added example documentation 2014-01-04 19:31:33 +00:00