Skip to content

Instantly share code, notes, and snippets.

Avatar
🐂

Lyndon White oxinabox

🐂
View GitHub Profile
View convexbased.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@oxinabox
oxinabox / NNMF.ipynb
Created Mar 11, 2020
NonNegative Matrix Factorization
View NNMF.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@oxinabox
oxinabox / ex.jl
Created Jan 15, 2020
DateTimeChanges
View ex.jl
## With this PR
julia> using Dates
# PERIOD
julia> d = Day(1)
1 day
julia> show(d)
@oxinabox
oxinabox / examples.jl
Last active Jan 15, 2020
date printing changes
View examples.jl
julia> using Dates
# PERIOD
julia> d = Day(1)
1 day
julia> show(d)
Day(1)
julia> show([d])
@oxinabox
oxinabox / PSO.dx
Last active Dec 2, 2019
A Particle Swarm Opotimizer in DexLang
View PSO.dx
' # Particle Swarm Optimizer
' ## Fitness function
rosenbrock:: Real -> Real -> Real
rosenbrock x y = sq (1.0 - x) + 100.0*sq (y - x*x)
' We write one that uses vector for input
@oxinabox
oxinabox / Manifest.toml
Created Nov 20, 2019
Distrubuted Fault
View Manifest.toml
[[Base64]]
uuid = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"
[[BinaryProvider]]
deps = ["Libdl", "SHA"]
git-tree-sha1 = "5b08ed6036d9d3f0ee6369410b830f8873d4024c"
uuid = "b99e7846-7c00-51b0-8f62-c81ae34c0232"
version = "0.5.8"
[[Compat]]
@oxinabox
oxinabox / 1
Created Sep 16, 2019
hold this image
@oxinabox
oxinabox / fdiff.jl
Created Aug 8, 2019
A Simple scalar ForwardDiff using ChainRules + DualNumbers
View fdiff.jl
#==
A Simple scalar ForwardDiff using ChainRules + DualNumbers
---
No promises are made to its correctness or safty.
Infact it probably errors for super standard cases.
But this is just to explain how it can work
==#
## Setup
using Pkg: Pkg, @pkg_str
@oxinabox
oxinabox / TensorBoardLoggerDemo.ipynb
Created Jul 5, 2019
Note: this does get a bit carried way on using closures. Cleaner is really to just set the logger.
View TensorBoardLoggerDemo.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@oxinabox
oxinabox / TellMeAboutSlotValues.ipynb
Created Apr 20, 2019
Cassette and I, killing the optimizer
View TellMeAboutSlotValues.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
You can’t perform that action at this time.