You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/getting_started/linear_regression.md
+7-16Lines changed: 7 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -247,19 +247,13 @@ The line fits well! There is room for improvement, but we leave that up to you!
247
247
We now move on to a relatively complex linear regression model. Here we will use a real dataset from [`MLDatasets.jl`](https://github.com/JuliaML/MLDatasets.jl), which will not confine our data points to have only one feature. Let's start by importing the required packages -
248
248
249
249
```jldoctest linear_regression_complex
250
-
julia> using Flux
251
-
252
-
julia> using Statistics
253
-
254
-
julia> using MLDatasets: BostonHousing
250
+
julia> using Flux, Statistics, MLDatasets, DataFrames
255
251
```
256
252
257
253
### Data
258
254
Let's start by initializing our dataset. We will be using the [`BostonHousing`](https://juliaml.github.io/MLDatasets.jl/stable/datasets/misc/#MLDatasets.BostonHousing) dataset consisting of `506` data points. Each of these data points has `13` features and a corresponding label, the house's price. The `x`s are still mapped to a single `y`, but now, a single `x` data point has 13 features.
259
255
260
256
```jldoctest linear_regression_complex
261
-
julia> using DataFrames
262
-
263
257
julia> dataset = BostonHousing()
264
258
dataset BostonHousing:
265
259
metadata => Dict{String, Any} with 5 entries
@@ -324,7 +318,7 @@ The training procedure would make use of the same mathematics, but now we can pa
0 commit comments