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
In your own code, you most likely won't need all of these packages. Pick and choose the one that best fits your problem.
23
23
24
-
If you will be using these tools as part of a bigger project, it's strongly recommended to create a [Julia Project](https://pkgdocs.julialang.org/v1/environments/) to record package versions. If you're just experimenting, you can create a temporary project by running `] activate --temp`.
24
+
If you will be using these tools as part of a bigger project, it's strongly recommended to create a [Julia Project](https://pkgdocs.julialang.org/v1/environments/) to record package versions. If you're just experimenting, you can create a temporary project by running `] activate --temp` in the Julia REPL.
25
25
26
-
If you're using [Pluto notebooks](https://github.com/fonsp/Pluto.jl), installing and recording package versions in a project are handled for you automatically.
26
+
If you're using [Pluto notebooks](https://plutojl.org), installing and recording package versions in a project are handled for you automatically.
@@ -151,9 +139,9 @@ The packages [LsqFit](https://julianlsolvers.github.io/LsqFit.jl/dev/) and [GLM]
151
139
152
140
## (Non-)linear curve fit
153
141
154
-
The packages above can be used to fit different polynomial models, but if we have a truly arbitrary Julia function we would like to fit to some data we can use the [Optimization.jl](http://optimization.sciml.ai/stable/) package. Through its various backends, Optimization.jl supports a very wide range of algorithms for local, global, convex, and non-convex optimization.
142
+
The packages above can be used to fit different polynomial models, but if we have a truly arbitrary Julia function we would like to fit to some data we can use the [Optimization.jl](http://optimization.sciml.ai/stable/) package. Through its various backends, Optimization.jl supports a very wide range of algorithms for local, global, convex, and non-convex optimization.
155
143
156
-
The first step is to define our objective function. We'll reuse our simple `linfunc` linear function from above:
144
+
The first step is to define our objective function. We'll reuse our simple `linfunc` linear function from above and create an objective function based on the sum of the squared errors
Each gray curve is a sample from the posterior distribution of this model. To examine the model parameters and their covariance in greater detail, we can make a corner plot using the PairPlots.jl package. We'll need a few more samples for a nice plot, so re-run the NUTS sampler with more iterations first.
Copy file name to clipboardExpand all lines: docs/src/tutorials/index.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,21 +9,21 @@ For more advanced usage examples, please see the documentation pages of the indi
9
9
10
10
## Installing Julia
11
11
12
-
To install Julia, it's strongly recommended to download the official binary for your operating system.
12
+
To install Julia, it's strongly recommended to download the official binary for your operating system.
13
13
Visit the [julialang.org Downloads page](https://julialang.org/downloads), and select the latest stable version for your operating system. Currently, this is 1.7.3. Click the [help] links next to your operating system if you require more detailed instructions.
14
14
15
15
## Installing Packages
16
16
17
17
Julia packages are installed and managed using the built-in package manager called [Pkg.jl](https://pkgdocs.julialang.org/v1/).
18
-
You can either use it interactively by entering "Pkg mode" in your terminal, or programatically. We'll illustrate interactive use here.
18
+
You can either use it interactively by entering "Pkg mode" in your terminal, or programmatically. We'll illustrate interactive use here.
19
19
20
20
1. Start julia in a terminal by running `julia`.
21
21
2. Type `]` to enter package-mode (see Julia documentation for more details)
22
22
3. Type `add SomePackage` to install a package, replacing `SomePackage` with the desired package name without the `.jl` extension.
23
23
24
24
This will take a little while to download all the required packages and precompile for your system. If you have several packages to install, list them all at once instead of one by one to save time: `add SomePackage1 SomePackage2 SomePackage3`
25
25
26
-
It's recommended to use Julia projects to store what packages you use and make it easier to reproduce your work. You can create or activate a previously created project by entering Pkg-mode (type `]`) and running `activate myproject`. Another option is to create a folder for your project, and start julia in that folder with the option `julia --project=./`.
26
+
It's recommended to use Julia projects to store what packages you use and make it easier to reproduce your work. You can create or activate a previously created project by entering Pkg-mode (type `]`) and running `activate myproject`. Another option is to create a folder for your project, and start julia in that folder with the option `julia --project`.
27
27
28
28
For more information on how to use the Julia package manager, refer to the [Pkg.jl documentation](https://pkgdocs.julialang.org/v1/repl/).
0 commit comments