Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cdipaolo/goml
/ functions
Functions
339 in github.com/cdipaolo/goml
⨍
Functions
339
◇
Types & classes
31
Function
BenchmarkNormalizePoint300Inputs
(b *testing.B)
base/munge_test.go:159
Function
BenchmarkNormalizePoint400Inputs
(b *testing.B)
base/munge_test.go:172
Function
BenchmarkNormalizePoint50Inputs
(b *testing.B)
base/munge_test.go:120
Function
BenchmarkNormalizePoint5Inputs
(b *testing.B)
base/munge_test.go:112
Method
Dij
Dij returns the derivative of the cost function J(θ) with respect to the j-th parameter of the hypothesis, θ[j], for the training example x[i]. Used i
linear/linear.go:530
Method
Dij
Dij returns the derivative of the cost function J(θ) with respect to the j-th parameter of the hypothesis, θ[j], for the training example x[i]. Used i
linear/logistic.go:511
Method
Distortion
Distortion returns the distortion of the clustering currently given by the k-means model. This is the function the learning algorithm tries to minimiz
cluster/kmeans.go:570
Method
Distortion
Distortion returns the distortion of the clustering currently given by the k-means model. This is the function the learning algorithm tries to minimiz
cluster/triangle_kmeans.go:572
Method
Dj
Dj returns the partial derivative of the cost function J(θ) with respect to theta[j] where theta is the parameter vector associated with our hypothesi
linear/linear.go:484
Method
Dj
Dj returns the partial derivative of the cost function J(θ) with respect to theta[j] where theta is the parameter vector associated with our hypothesi
linear/logistic.go:465
Method
Examples
Examples returns the number of training examples (m) that the model currently is training from.
linear/linear.go:195
Method
Examples
Examples returns the number of training examples (m) that the model currently is training from.
linear/softmax.go:150
Method
Examples
Examples returns the number of training examples (m) that the model currently is training from.
linear/logistic.go:160
Method
Examples
Examples returns the number of training examples (m) that the model currently is training from.
linear/local_linear.go:204
Method
Examples
Examples returns the number of training examples (m) that the model currently is training from.
cluster/kmeans.go:232
Method
Examples
Examples returns the number of training examples (m) that the model currently is holding
cluster/knn.go:122
Method
Examples
Examples returns the number of training examples (m) that the model currently is training from.
cluster/triangle_kmeans.go:243
Method
Guesses
Guesses returns the hidden parameter for the unsupervised classification assigned during learning. model.Guesses[i] = E[k.trainingSet[i]]
cluster/kmeans.go:560
Method
Guesses
Guesses returns the hidden parameter for the unsupervised classification assigned during learning. model.Guesses[i] = E[k.trainingSet[i]]
cluster/triangle_kmeans.go:562
Method
J
J returns the Least Squares cost function of the given linear model. Could be useful in testing convergence
linear/linear.go:562
Method
J
J returns the Least Squares cost function of the given linear model. Could be usefull in testing convergance
linear/local_linear.go:456
Function
LNorm
LNorm returns a DistanceMeasure of the l-p norm. L norms are a generalized family of the Euclidean and Manhattan distance. https://en.wikipedia.org/w
base/distance.go:66
Method
LearningRate
LearningRate returns the learning rate α for gradient descent to optimize the model. Could vary as a function of something else later, potentially.
linear/linear.go:189
Method
LearningRate
LearningRate returns the learning rate α for gradient descent to optimize the model. Could vary as a function of something else later, potentially.
linear/softmax.go:144
Method
LearningRate
LearningRate returns the learning rate α for gradient descent to optimize the model. Could vary as a function of something else later, potentially.
linear/logistic.go:154
Method
LearningRate
LearningRate returns the learning rate α for gradient descent to optimize the model. Could vary as a function of something else later, potentially.
linear/local_linear.go:198
Method
LearningRate
LearningRate returns the learning rate α to be used in Gradient Descent as the modifier term
base/model.go:155
Method
LearningRate
LearningRate returns the learning rate α for gradient descent to optimize the model. Could vary as a function of something else later, potentially.
cluster/kmeans.go:226
Method
Less
Less gives whether the ith element of a frequency list has is lesser than the jth element by comparing their TFIDF values
text/tfidf.go:64
Method
MarshalJSON
()
text/bayes.go:199
Method
MaxIterations
MaxIterations returns the number of maximum iterations the model will go through in GradientAscent, in the worst case
linear/linear.go:202
Method
MaxIterations
MaxIterations returns the number of maximum iterations the model will go through in GradientAscent, in the worst case
linear/softmax.go:157
Method
MaxIterations
MaxIterations returns the number of maximum iterations the model will go through in GradientAscent, in the worst case
linear/logistic.go:167
Method
MaxIterations
MaxIterations returns the number of maximum iterations the model will go through in GradientAscent, in the worst case
linear/local_linear.go:211
Method
MaxIterations
MaxIterations returns the maximum number of iterations to try using gradient ascent. Might return after less if strong convergance is detected, but it
base/model.go:175
Method
MaxIterations
MaxIterations returns the number of maximum iterations the model will go through in GradientAscent, in the worst case
cluster/kmeans.go:239
Method
MaxIterations
MaxIterations returns the number of maximum iterations the model will go through
cluster/triangle_kmeans.go:249
Method
OnlineLearn
OnlineLearn has no outputs so you can run the data within a separate goroutine! A channel of errors is passed so you know when there's been an error i
base/model.go:67
Method
OnlineLearn
OnlineLearn has no outputs so you can run the data within a separate goroutine! A channel of errors is passed so you know when there's been an error i
base/model.go:102
Function
OnlyAsciiLetters
OnlyAsciiLetters is a transform function that will only let a-zA-Z through
base/sanitize.go:57
Function
OnlyAsciiWords
OnlyAsciiWords is a transform function that will only let a-zA-Z, and spaces through
base/sanitize.go:35
Function
OnlyAsciiWordsAndNumbers
OnlyAsciiWordsAndNumbers is a transform function that will only let 0-9a-zA-Z, and spaces through
base/sanitize.go:10
Function
OnlyLetters
OnlyLetters is a transform function that lets any unicode letter through
base/sanitize.go:70
Function
OnlyWords
OnlyWords is a transform function that lets any unicode letter through as well as spaces
base/sanitize.go:51
Function
OnlyWordsAndNumbers
OnlyWordsAndNumbers is a transform function that lets any unicode letter or digit through as well as spaces
base/sanitize.go:28
Method
PersistToFile
PersistToFile and RestoreFromFile both take in paths (absolute paths!) to files and persists the necessary data to the filepath such that you can Rest
base/model.go:44
Method
PersistToFile
PersistToFile and RestoreFromFile both take in paths (absolute paths!) to files and persists the necessary data to the filepath such that you can Rest
base/model.go:80
Method
PersistToFile
PersistToFile and RestoreFromFile both take in paths (absolute paths!) to files and persists the necessary data to the filepath such that you can Rest
base/model.go:115
Method
Predict
The variadic argument in Predict is an optional arg which (if true) tells the function to first normalize the input to vector unit length. Use (and on
base/model.go:35
Method
Predict
([]float64)
base/model.go:53
Method
Predict
Predict takes a document and returns the expected class found by the model
base/model.go:94
Method
RestoreFromFile
(string)
base/model.go:45
Method
RestoreFromFile
(string)
base/model.go:81
Method
RestoreFromFile
(string)
base/model.go:116
Method
String
String implements the fmt interface for clean printing. Here we're using it to print the model as the equation h(θ)=... where h is the linear hypothes
linear/linear.go:459
Method
String
String implements the fmt interface for clean printing. Here we're using it to print the model as the equation h(θ)=... where h is the softmax hypothe
linear/softmax.go:527
Method
String
String implements the fmt interface for clean printing. Here we're using it to print the model as the equation h(θ)=... where h is the logistic hypoth
linear/logistic.go:440
Method
String
String implements the fmt interface for clean printing. Here we're using it to print the model as the equation h(θ)=... where h is the linear hypothes
linear/local_linear.go:321
Method
String
String implements the fmt interface for clean printing. Here we're using it to print the model as the equation h(θ)=... where h is the perceptron hypo
perceptron/perceptron.go:388
Method
String
String implements the fmt interface for clean printing. Here we're using it to print the model as the equation h(θ)=... where h is the perceptron hypo
perceptron/kernel_perceptron.go:285
Method
String
String implements the fmt interface for clean printing. Here we're using it to print the model as the equation h(θ)=... where h is the k-means hypothe
cluster/kmeans.go:551
Method
String
String implements the fmt interface for clean printing. Here we're using it to print the model as the equation h(θ)=... where h is the k-means hypothe
cluster/triangle_kmeans.go:553
Method
Swap
Swap swaps two indexed values in a frequency slice
text/tfidf.go:70
Function
TestAreaClassificationShouldPass1
(t *testing.T)
text/bayes_test.go:81
Function
TestAreaTFIDFShouldPass1
(t *testing.T)
text/tfidf_test.go:76
Function
TestAsciiLetters
(t *testing.T)
base/sanitize_test.go:84
Function
TestAsciiWords
(t *testing.T)
base/sanitize_test.go:56
Function
TestAsciiWordsAndNumbers
(t *testing.T)
base/sanitize_test.go:28
Function
TestComputeCentroidDistanceMatrix1
(t *testing.T)
cluster/triangle_kmeans_test.go:47
Function
TestConcurrentPredictionAndLearningShouldNotFail
make sure that calling predict while the model is still training does not cause a runtime panic because of concurrent map reads & writes
text/bayes_test.go:236
Function
TestDistanceEuclideanShouldPass1
(t *testing.T)
base/distance_test.go:9
Function
TestDistanceEuclideanShouldPass2
(t *testing.T)
base/distance_test.go:16
Function
TestDistanceManhattanShouldPass1
(t *testing.T)
base/distance_test.go:23
Function
TestDistanceManhattanShouldPass2
(t *testing.T)
base/distance_test.go:30
Function
TestExampleClassificationShouldPass1
(t *testing.T)
text/bayes_test.go:25
Function
TestExampleTFIDFShouldPass1
(t *testing.T)
text/tfidf_test.go:23
Function
TestFlatLineShouldFail1
test y=3 but don't have enough iterations
linear/linear_test.go:137
Function
TestFlatLineShouldFail2
same as above but with StochasticGA
linear/linear_test.go:165
Function
TestFlatLineShouldFail3
test y=3 but include an invalid data set
linear/linear_test.go:193
Function
TestFlatLineShouldFail4
same as above but with StochasticGA
linear/linear_test.go:213
Function
TestFlatLineShouldFail5
test y=3 but include an invalid data set
linear/linear_test.go:233
Function
TestFlatLineShouldFail6
invalid optimization method
linear/linear_test.go:248
Function
TestFlatLineShouldPass1
test y=3
linear/linear_test.go:91
Function
TestFlatLineShouldPass2
same as above but with StochasticGA
linear/linear_test.go:114
Function
TestFourDXShouldPass1
(t *testing.T)
perceptron/perceptron_test.go:177
Function
TestFourDimensionalPlaneShouldFail1
test ( 10*i + j/20 + k ) > 0 but don't have enough iterations
linear/logistic_test.go:179
Function
TestFourDimensionalPlaneShouldFail2
same as above but with StochasticGA
linear/logistic_test.go:209
Function
TestFourDimensionalPlaneShouldFail3
test ( 10*i + j/20 + k ) > 0 but include an invalid data set
linear/logistic_test.go:239
Function
TestFourDimensionalPlaneShouldFail4
same as above but with StochasticGA
linear/logistic_test.go:259
Function
TestFourDimensionalPlaneShouldFail5
test ( 10*i + j/20 + k ) > 0 but include an invalid data set
linear/logistic_test.go:279
Function
TestFourDimensionalPlaneShouldFail6
same as above but with StochasticGA
linear/logistic_test.go:294
Function
TestFourDimensionalPlaneShouldFail7
invalid method
linear/logistic_test.go:309
Function
TestFourDimensionalPlaneShouldPass1
test ( 10*i + j/20 + k ) > 0
linear/logistic_test.go:121
Function
TestFourDimensionalPlaneShouldPass2
same as above but with StochasticGA
linear/logistic_test.go:150
Function
TestFourDimensionalSoftmaxShouldFail1
test ( 10*i + j/20 + k ) > 0 but don't have enough iterations
linear/softmax_test.go:205
Function
TestFourDimensionalSoftmaxShouldFail2
same as above but with StochasticGA
linear/softmax_test.go:258
Function
TestFourDimensionalSoftmaxShouldFail3
test ( 10*i + j/20 + k ) > 0 but include an invalid data set
linear/softmax_test.go:311
Function
TestFourDimensionalSoftmaxShouldFail4
same as above but with StochasticGA
linear/softmax_test.go:331
Function
TestFourDimensionalSoftmaxShouldFail5
test ( 10*i + j/20 + k ) > 0 but include an invalid data set
linear/softmax_test.go:351
Function
TestFourDimensionalSoftmaxShouldFail6
same as above but with StochasticGA
linear/softmax_test.go:366
← previous
next →
101–200 of 339, ranked by callers