Skip to content

Instantly share code, notes, and snippets.

using Plots
using Flux
using NNlib
using Flux: @epochs
m = Dense(1,1)
loss(x, y) = sum((m(x).-y).^2)
dataset = [([0.8], [1.0]),
using Plots
using Flux
using ColorSchemes
using NNlib
using Flux: @epochs
m = Dense(1,1)
loss(x, y) = sum((m(x).-y).^2)
using Plots
using Flux
using ColorSchemes
using NNlib
using Flux: @epochs
loss(x, y) = sum((m(x).-y).^2)
opt = Descent(0.01)
dataset = [([0.8], [1.0]),
using Plots
using Flux
using ColorSchemes
using NNlib
using Flux: @epochs
loss(x, y) = sum((m(x).-y).^2)
opt = Descent(0.01)
dataset = [([0.8], [1.0]),