MCPcopy Create free account

hub / github.com/cdipaolo/goml / functions

Functions339 in github.com/cdipaolo/goml

FunctionBenchmarkNormalizePoint300Inputs
(b *testing.B)
base/munge_test.go:159
FunctionBenchmarkNormalizePoint400Inputs
(b *testing.B)
base/munge_test.go:172
FunctionBenchmarkNormalizePoint50Inputs
(b *testing.B)
base/munge_test.go:120
FunctionBenchmarkNormalizePoint5Inputs
(b *testing.B)
base/munge_test.go:112
MethodDij
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
MethodDij
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
MethodDistortion
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
MethodDistortion
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
MethodDj
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
MethodDj
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
MethodExamples
Examples returns the number of training examples (m) that the model currently is training from.
linear/linear.go:195
MethodExamples
Examples returns the number of training examples (m) that the model currently is training from.
linear/softmax.go:150
MethodExamples
Examples returns the number of training examples (m) that the model currently is training from.
linear/logistic.go:160
MethodExamples
Examples returns the number of training examples (m) that the model currently is training from.
linear/local_linear.go:204
MethodExamples
Examples returns the number of training examples (m) that the model currently is training from.
cluster/kmeans.go:232
MethodExamples
Examples returns the number of training examples (m) that the model currently is holding
cluster/knn.go:122
MethodExamples
Examples returns the number of training examples (m) that the model currently is training from.
cluster/triangle_kmeans.go:243
MethodGuesses
Guesses returns the hidden parameter for the unsupervised classification assigned during learning. model.Guesses[i] = E[k.trainingSet[i]]
cluster/kmeans.go:560
MethodGuesses
Guesses returns the hidden parameter for the unsupervised classification assigned during learning. model.Guesses[i] = E[k.trainingSet[i]]
cluster/triangle_kmeans.go:562
MethodJ
J returns the Least Squares cost function of the given linear model. Could be useful in testing convergence
linear/linear.go:562
MethodJ
J returns the Least Squares cost function of the given linear model. Could be usefull in testing convergance
linear/local_linear.go:456
FunctionLNorm
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
MethodLearningRate
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
MethodLearningRate
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
MethodLearningRate
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
MethodLearningRate
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
MethodLearningRate
LearningRate returns the learning rate α to be used in Gradient Descent as the modifier term
base/model.go:155
MethodLearningRate
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
MethodLess
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
MethodMarshalJSON
()
text/bayes.go:199
MethodMaxIterations
MaxIterations returns the number of maximum iterations the model will go through in GradientAscent, in the worst case
linear/linear.go:202
MethodMaxIterations
MaxIterations returns the number of maximum iterations the model will go through in GradientAscent, in the worst case
linear/softmax.go:157
MethodMaxIterations
MaxIterations returns the number of maximum iterations the model will go through in GradientAscent, in the worst case
linear/logistic.go:167
MethodMaxIterations
MaxIterations returns the number of maximum iterations the model will go through in GradientAscent, in the worst case
linear/local_linear.go:211
MethodMaxIterations
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
MethodMaxIterations
MaxIterations returns the number of maximum iterations the model will go through in GradientAscent, in the worst case
cluster/kmeans.go:239
MethodMaxIterations
MaxIterations returns the number of maximum iterations the model will go through
cluster/triangle_kmeans.go:249
MethodOnlineLearn
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
MethodOnlineLearn
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
FunctionOnlyAsciiLetters
OnlyAsciiLetters is a transform function that will only let a-zA-Z through
base/sanitize.go:57
FunctionOnlyAsciiWords
OnlyAsciiWords is a transform function that will only let a-zA-Z, and spaces through
base/sanitize.go:35
FunctionOnlyAsciiWordsAndNumbers
OnlyAsciiWordsAndNumbers is a transform function that will only let 0-9a-zA-Z, and spaces through
base/sanitize.go:10
FunctionOnlyLetters
OnlyLetters is a transform function that lets any unicode letter through
base/sanitize.go:70
FunctionOnlyWords
OnlyWords is a transform function that lets any unicode letter through as well as spaces
base/sanitize.go:51
FunctionOnlyWordsAndNumbers
OnlyWordsAndNumbers is a transform function that lets any unicode letter or digit through as well as spaces
base/sanitize.go:28
MethodPersistToFile
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
MethodPersistToFile
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
MethodPersistToFile
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
MethodPredict
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
MethodPredict
([]float64)
base/model.go:53
MethodPredict
Predict takes a document and returns the expected class found by the model
base/model.go:94
MethodRestoreFromFile
(string)
base/model.go:45
MethodRestoreFromFile
(string)
base/model.go:81
MethodRestoreFromFile
(string)
base/model.go:116
MethodString
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
MethodString
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
MethodString
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
MethodString
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
MethodString
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
MethodString
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
MethodString
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
MethodString
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
MethodSwap
Swap swaps two indexed values in a frequency slice
text/tfidf.go:70
FunctionTestAreaClassificationShouldPass1
(t *testing.T)
text/bayes_test.go:81
FunctionTestAreaTFIDFShouldPass1
(t *testing.T)
text/tfidf_test.go:76
FunctionTestAsciiLetters
(t *testing.T)
base/sanitize_test.go:84
FunctionTestAsciiWords
(t *testing.T)
base/sanitize_test.go:56
FunctionTestAsciiWordsAndNumbers
(t *testing.T)
base/sanitize_test.go:28
FunctionTestComputeCentroidDistanceMatrix1
(t *testing.T)
cluster/triangle_kmeans_test.go:47
FunctionTestConcurrentPredictionAndLearningShouldNotFail
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
FunctionTestDistanceEuclideanShouldPass1
(t *testing.T)
base/distance_test.go:9
FunctionTestDistanceEuclideanShouldPass2
(t *testing.T)
base/distance_test.go:16
FunctionTestDistanceManhattanShouldPass1
(t *testing.T)
base/distance_test.go:23
FunctionTestDistanceManhattanShouldPass2
(t *testing.T)
base/distance_test.go:30
FunctionTestExampleClassificationShouldPass1
(t *testing.T)
text/bayes_test.go:25
FunctionTestExampleTFIDFShouldPass1
(t *testing.T)
text/tfidf_test.go:23
FunctionTestFlatLineShouldFail1
test y=3 but don't have enough iterations
linear/linear_test.go:137
FunctionTestFlatLineShouldFail2
same as above but with StochasticGA
linear/linear_test.go:165
FunctionTestFlatLineShouldFail3
test y=3 but include an invalid data set
linear/linear_test.go:193
FunctionTestFlatLineShouldFail4
same as above but with StochasticGA
linear/linear_test.go:213
FunctionTestFlatLineShouldFail5
test y=3 but include an invalid data set
linear/linear_test.go:233
FunctionTestFlatLineShouldFail6
invalid optimization method
linear/linear_test.go:248
FunctionTestFlatLineShouldPass1
test y=3
linear/linear_test.go:91
FunctionTestFlatLineShouldPass2
same as above but with StochasticGA
linear/linear_test.go:114
FunctionTestFourDXShouldPass1
(t *testing.T)
perceptron/perceptron_test.go:177
FunctionTestFourDimensionalPlaneShouldFail1
test ( 10*i + j/20 + k ) > 0 but don't have enough iterations
linear/logistic_test.go:179
FunctionTestFourDimensionalPlaneShouldFail2
same as above but with StochasticGA
linear/logistic_test.go:209
FunctionTestFourDimensionalPlaneShouldFail3
test ( 10*i + j/20 + k ) > 0 but include an invalid data set
linear/logistic_test.go:239
FunctionTestFourDimensionalPlaneShouldFail4
same as above but with StochasticGA
linear/logistic_test.go:259
FunctionTestFourDimensionalPlaneShouldFail5
test ( 10*i + j/20 + k ) > 0 but include an invalid data set
linear/logistic_test.go:279
FunctionTestFourDimensionalPlaneShouldFail6
same as above but with StochasticGA
linear/logistic_test.go:294
FunctionTestFourDimensionalPlaneShouldFail7
invalid method
linear/logistic_test.go:309
FunctionTestFourDimensionalPlaneShouldPass1
test ( 10*i + j/20 + k ) > 0
linear/logistic_test.go:121
FunctionTestFourDimensionalPlaneShouldPass2
same as above but with StochasticGA
linear/logistic_test.go:150
FunctionTestFourDimensionalSoftmaxShouldFail1
test ( 10*i + j/20 + k ) > 0 but don't have enough iterations
linear/softmax_test.go:205
FunctionTestFourDimensionalSoftmaxShouldFail2
same as above but with StochasticGA
linear/softmax_test.go:258
FunctionTestFourDimensionalSoftmaxShouldFail3
test ( 10*i + j/20 + k ) > 0 but include an invalid data set
linear/softmax_test.go:311
FunctionTestFourDimensionalSoftmaxShouldFail4
same as above but with StochasticGA
linear/softmax_test.go:331
FunctionTestFourDimensionalSoftmaxShouldFail5
test ( 10*i + j/20 + k ) > 0 but include an invalid data set
linear/softmax_test.go:351
FunctionTestFourDimensionalSoftmaxShouldFail6
same as above but with StochasticGA
linear/softmax_test.go:366
← previousnext →101–200 of 339, ranked by callers