Documentation ¶
Index ¶
- Constants
- func Bool(t bool) float64
- func Normalize(xs *mat.Dense) error
- type LR
- func (lr *LR) Fit(x *mat.Dense, y *mat.VecDense)
- func (lr *LR) GobDecode(data []byte) error
- func (lr *LR) GobEncode() ([]byte, error)
- func (lr *LR) MarshalJSON() ([]byte, error)
- func (lr *LR) Predict(x *mat.Dense, t float64) *mat.VecDense
- func (lr *LR) PredictProb(x *mat.Dense) *mat.VecDense
- func (lr *LR) UnmarshalJSON(data []byte) error
- func (lr *LR) Weights() []float64
Constants ¶
View Source
const ( False = float64(0) True = float64(1) )
Predefined values for true and false.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LR ¶
LR implements LinearRegression
func (*LR) MarshalJSON ¶
MarshalJSON implements the json.Marshal interface.
func (*LR) PredictProb ¶
PredictProb calculates the probablility predictions for the given values.
func (*LR) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshal interface.
Click to show internal directories.
Click to hide internal directories.