Skip to content

Commit

Permalink
simplified docs
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmandlik committed Jun 3, 2024
1 parent 77e237c commit 583f133
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 9 deletions.
2 changes: 0 additions & 2 deletions docs/Project.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
[deps]
Accessors = "7d9f7c33-5ae7-4f3b-8dc6-eff91059b697"
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
DocumenterCitations = "daee34ce-89f3-4625-b898-19384cb65244"
Expand All @@ -11,5 +10,4 @@ HierarchicalUtils = "f9ccea15-0695-44b9-8113-df7c26ae4fa9"
Literate = "98b081ad-f1c9-55d3-8b20-4c87d4299306"
Mill = "1d0525e4-8992-11e8-313c-e310e1f6ddea"
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"
5 changes: 2 additions & 3 deletions docs/make.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using Pkg
using Documenter, DocumenterCitations, Literate
using Mill, Flux, Random, SparseArrays, Accessors, HierarchicalUtils
using Mill
using Pkg, Documenter, DocumenterCitations, Literate

#=
Useful resources for writing docs:
Expand Down
4 changes: 2 additions & 2 deletions docs/src/examples/musk/Manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ version = "0.5.0"

[[deps.ChainRules]]
deps = ["Adapt", "ChainRulesCore", "Compat", "Distributed", "GPUArraysCore", "IrrationalConstants", "LinearAlgebra", "Random", "RealDot", "SparseArrays", "SparseInverseSubset", "Statistics", "StructArrays", "SuiteSparse"]
git-tree-sha1 = "450ba466228b4dd2f620dc50d36cef7eb23ff8a7"
git-tree-sha1 = "5ec157747036038ec70b250f578362268f0472f1"
uuid = "082447d4-558c-5d27-93f4-14fc19e9eca2"
version = "1.67.0"
version = "1.68.0"

[[deps.ChainRulesCore]]
deps = ["Compat", "LinearAlgebra"]
Expand Down
2 changes: 1 addition & 1 deletion docs/src/examples/musk/musk.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ model(ds)

opt_state = Flux.setup(Adam(), model);

loss(m, x, y) = Flux.logitcrossentropy(m(x), y);
loss(m, x, y) = Flux.Losses.logitcrossentropy(m(x), y);

for e in 1:100
if e % 10 == 1
Expand Down
2 changes: 1 addition & 1 deletion docs/src/examples/musk/musk.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ nothing #hide
...define a loss function as `Flux.logitcrossentropy`:

````@example musk
loss(m, x, y) = Flux.logitcrossentropy(m(x), y);
loss(m, x, y) = Flux.Losses.logitcrossentropy(m(x), y);
nothing #hide
````

Expand Down

0 comments on commit 583f133

Please sign in to comment.