- 
                  
                  Whether to calculate the intercept for this model. DeclarationSwift var fitIntercept: Bool { get set }
- 
                  
                  The weights of the model. DeclarationSwift var weights: Tensor<Float> { get set }
- 
                  
                  Fit a linear model. DeclarationSwift mutating func fit(data: Tensor<Float>, labels: Tensor<Float>)
- 
                  prediction(for:)Default implementationReturns prediction using linear model. Default ImplementationReturns prediction using linear model. DeclarationSwift mutating func prediction(for data: Tensor<Float>) -> Tensor<Float>
- 
                  score(data:labels:)Default implementationReturns the coefficient of determination ( R^2) of the prediction.Default ImplementationReturns the coefficient of determination ( R^2) of the prediction.DeclarationSwift mutating func score(data: Tensor<Float>, labels: Tensor<Float>) -> Float
 LinearRegression Protocol Reference
      LinearRegression Protocol Reference