Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PacktPublishing/Machine-Learning-With-Go-Second-Edition
/ functions
Functions
136 in github.com/PacktPublishing/Machine-Learning-With-Go-Second-Edition
⨍
Functions
136
◇
Types & classes
21
↓ 4 callers
Function
dfFloatRow
dfFloatRow retrieves a slice of float values from a DataFrame at the given index and for the given column names.
Chapter06/evaluating/example2/myprogram.go:148
↓ 4 callers
Function
sigmoid
sigmoid implements the sigmoid function for use in activation functions.
Chapter08/utilizing_our_simple_nn/example1/myprogram.go:352
↓ 3 callers
Function
sigmoid
sigmoid implements the sigmoid function for use in activation functions.
Chapter08/building_a_simple_nn/example1/myprogram.go:183
↓ 2 callers
Function
ArgMin
return index at the point whose value is the smallest on the slice
Chapter06/k-means/example6/myprogram.go:94
↓ 2 callers
Function
Dist
calculate the distance between two points.Euclidean
Chapter06/k-means/example6/myprogram.go:85
↓ 2 callers
Function
Transpose
(source [][]float64)
Chapter06/k-means/example6/myprogram.go:66
↓ 2 callers
Function
convertToBinary
convertToBinary utilizes built in golearn functionality to convert our labels to a binary label format.
Chapter05/naive_bayes/example1/myprogram.go:49
↓ 2 callers
Function
filesExist
(files ...string)
Chapter09/tensorflow_bindings/myprogram.go:229
↓ 2 callers
Function
sumAlongAxis
sumAlongAxis sums a matrix along a particular dimension, preserving the other dimension.
Chapter08/utilizing_our_simple_nn/example1/myprogram.go:365
↓ 2 callers
Function
sumAlongAxis
sumAlongAxis sums a matrix along a particular dimension, preserving the other dimension.
Chapter08/building_a_simple_nn/example1/myprogram.go:196
↓ 2 callers
Function
withinClusterMean
withinClusterMean calculates the mean distance between points in a cluster and the centroid of the cluster.
Chapter06/k-means/example5/myprogram.go:49
↓ 1 callers
Function
Predict
Predict makes a prediction based on input JSON.
Chapter10/running_model_reliably/example3/myprogram.go:106
↓ 1 callers
Function
acf
acf calculates the autocorrelation for a series at the given lag.
Chapter07/statistics/example2/myprogram.go:73
↓ 1 callers
Function
acf
acf calculates the autocorrelation for a series at the given lag.
Chapter07/statistics/example1/myprogram.go:40
↓ 1 callers
Function
acf
acf calculates the autocorrelation for a series at the given lag.
Chapter07/auto_regressive/example3/myprogram.go:73
↓ 1 callers
Function
autoregressive
autoregressive calculates an AR model for a series at a given order.
Chapter07/auto_regressive/example5/myprogram.go:38
↓ 1 callers
Function
constructGraphToNormalizeImage
The inception model takes as input the image described by a Tensor in a very specific normalized format (a particular image size, shape of the input t
Chapter09/tensorflow_bindings/myprogram.go:171
↓ 1 callers
Function
download
(URL, filename string)
Chapter09/tensorflow_bindings/myprogram.go:238
↓ 1 callers
Method
fit
(X [][]float64, k int)
Chapter06/k-means/example6/myprogram.go:114
↓ 1 callers
Function
logistic
logistic implements the logistic function, which is used in logistic regression.
Chapter05/logistic_regression/example6/myprogram.go:88
↓ 1 callers
Function
logistic
logistic implements the logistic function, which is used in logistic regression.
Chapter05/logistic_regression/example2/myprogram.go:48
↓ 1 callers
Function
logistic
logistic implements the logistic function, which is used in logistic regression.
Chapter05/logistic_regression/example1/myprogram.go:15
↓ 1 callers
Function
logisticRegression
logisticRegression fits a logistic regression model for the given data.
Chapter05/logistic_regression/example6/myprogram.go:94
↓ 1 callers
Function
makeTensorFromImage
Convert the image in filename to a Tensor suitable as input to the Inception model.
Chapter09/tensorflow_bindings/myprogram.go:133
↓ 1 callers
Function
modelFiles
(dir string)
Chapter09/tensorflow_bindings/myprogram.go:205
↓ 1 callers
Function
newNetwork
NewNetwork initializes a new neural network.
Chapter08/utilizing_our_simple_nn/example1/myprogram.go:215
↓ 1 callers
Function
newNetwork
NewNetwork initializes a new neural network.
Chapter08/building_a_simple_nn/example1/myprogram.go:78
↓ 1 callers
Function
pacf
pacf calculates the partial autocorrelation for a series at the given lag.
Chapter07/statistics/example3/myprogram.go:40
↓ 1 callers
Function
pacf
pacf calculates the partial autocorrelation for a series at the given lag.
Chapter07/statistics/example4/myprogram.go:73
↓ 1 callers
Function
pacf
pacf calculates the partial autocorrelation for a series at the given lag.
Chapter07/auto_regressive/example4/myprogram.go:73
↓ 1 callers
Function
plotData
(out io.Writer, xs, ys []float64, iterations int)
Chapter04/linear_regression/example8/myprogram.go:80
↓ 1 callers
Function
predict
predict uses our trained regression model to made a prediction based on a TV, Radio, and Newspaper value.
Chapter04/non-linear_regression/example3/myprogram.go:78
↓ 1 callers
Function
predict
predict uses our trained regression model to made a prediction.
Chapter04/linear_regression/example7/myprogram.go:77
↓ 1 callers
Function
predict
predict makes a prediction based on our trained logistic regression model.
Chapter05/logistic_regression/example7/myprogram.go:90
↓ 1 callers
Method
predict
predict makes a prediction based on a trained neural network.
Chapter08/utilizing_our_simple_nn/example1/myprogram.go:320
↓ 1 callers
Function
printBestLabel
(probabilities []float32, labelsFile string)
Chapter09/tensorflow_bindings/myprogram.go:107
↓ 1 callers
Function
readData
(data io.Reader)
Chapter04/linear_regression/example8/myprogram.go:57
↓ 1 callers
Function
readDescriptions
readDescriptions reads the descriptions from a file and returns a slice of its lines.
Chapter09/gocv_streaming/myprogram.go:17
↓ 1 callers
Function
sigmoidPrime
sigmoidPrime implements the derivative of the sigmoid function for backpropagation.
Chapter08/utilizing_our_simple_nn/example1/myprogram.go:358
↓ 1 callers
Function
sigmoidPrime
sigmoidPrime implements the derivative of the sigmoid function for backpropagation.
Chapter08/building_a_simple_nn/example1/myprogram.go:189
↓ 1 callers
Method
train
Train trains a neural network using backpropagation.
Chapter08/utilizing_our_simple_nn/example1/myprogram.go:220
↓ 1 callers
Method
train
Train trains a neural network using backpropagation.
Chapter08/building_a_simple_nn/example1/myprogram.go:83
↓ 1 callers
Function
unzip
(dir, zipfile string)
Chapter09/tensorflow_bindings/myprogram.go:253
Method
Len
()
Chapter04/linear_regression/example8/myprogram.go:77
Method
XY
(i int)
Chapter04/linear_regression/example8/myprogram.go:78
Function
main
()
Chapter04/non-linear_regression/example3/myprogram.go:12
Function
main
()
Chapter04/non-linear_regression/example2/myprogram.go:14
Function
main
()
Chapter04/non-linear_regression/example1/myprogram.go:13
Function
main
()
Chapter04/linear_regression/example3/myprogram.go:14
Function
main
()
Chapter04/linear_regression/example6/myprogram.go:14
Function
main
()
Chapter04/linear_regression/example2/myprogram.go:14
Function
main
()
Chapter04/linear_regression/example4/myprogram.go:11
Function
main
()
Chapter04/linear_regression/example8/myprogram.go:19
Function
main
()
Chapter04/linear_regression/example1/myprogram.go:11
Function
main
()
Chapter04/linear_regression/example7/myprogram.go:14
Function
main
()
Chapter04/linear_regression/example5/myprogram.go:13
Function
main
()
Chapter04/multiple_regression/example2/myprogram.go:14
Function
main
()
Chapter04/multiple_regression/example1/myprogram.go:13
Function
main
()
Chapter07/statistics/example3/myprogram.go:13
Function
main
()
Chapter07/statistics/example2/myprogram.go:16
Function
main
()
Chapter07/statistics/example4/myprogram.go:16
Function
main
()
Chapter07/statistics/example1/myprogram.go:13
Function
main
()
Chapter07/anomaly_detection/example1/myprogram.go:10
Function
main
()
Chapter07/representing_time_series/example2/myprogram.go:14
Function
main
()
Chapter07/representing_time_series/example1/myprogram.go:11
Function
main
()
Chapter07/auto_regressive/example3/myprogram.go:16
Function
main
()
Chapter07/auto_regressive/example6/myprogram.go:16
Function
main
()
Chapter07/auto_regressive/example2/myprogram.go:17
Function
main
()
Chapter07/auto_regressive/example4/myprogram.go:16
Function
main
()
Chapter07/auto_regressive/example1/myprogram.go:16
Function
main
()
Chapter07/auto_regressive/example5/myprogram.go:13
Function
main
()
Chapter06/evaluating/example2/myprogram.go:14
Function
main
()
Chapter06/evaluating/example1/myprogram.go:13
Function
main
()
Chapter06/distance/example1/myprogram.go:9
Function
main
()
Chapter06/k-means/example3/myprogram.go:14
Function
main
()
Chapter06/k-means/example6/myprogram.go:15
Function
main
()
Chapter06/k-means/example2/myprogram.go:14
Function
main
()
Chapter06/k-means/example4/myprogram.go:15
Function
main
()
Chapter06/k-means/example1/myprogram.go:14
Function
main
()
Chapter06/k-means/example5/myprogram.go:12
Function
main
()
Chapter03/validation/training_test/example1/myprogram.go:11
Function
main
()
Chapter03/evaluation/categorical_metrics/example3/myprogram.go:10
Function
main
()
Chapter03/evaluation/categorical_metrics/example2/myprogram.go:12
Function
main
()
Chapter03/evaluation/categorical_metrics/example1/myprogram.go:12
Function
main
()
Chapter03/evaluation/continuous_metrics/example2/myprogram.go:14
Function
main
()
Chapter03/evaluation/continuous_metrics/example1/myprogram.go:13
Function
main
()
Chapter05/naive_bayes/example1/myprogram.go:13
Function
main
()
Chapter05/decision_tree/example2/myprogram.go:14
Function
main
()
Chapter05/decision_tree/example1/myprogram.go:14
Function
main
()
Chapter05/kNN/example1/myprogram.go:13
Function
main
()
Chapter05/logistic_regression/example3/myprogram.go:11
Function
main
()
Chapter05/logistic_regression/example6/myprogram.go:16
Function
main
()
Chapter05/logistic_regression/example2/myprogram.go:13
Function
main
()
Chapter05/logistic_regression/example4/myprogram.go:14
Function
main
()
Chapter05/logistic_regression/example8/myprogram.go:8
Function
main
()
Chapter05/logistic_regression/example1/myprogram.go:8
Function
main
()
Chapter05/logistic_regression/example7/myprogram.go:13
Function
main
()
Chapter05/logistic_regression/example5/myprogram.go:11
Function
main
()
Chapter01/sql-like_databases/example3/myprogram.go:13
Function
main
()
Chapter01/sql-like_databases/example2/myprogram.go:14
next →
1–100 of 136, ranked by callers