From 083f256c51b7b20390c472315abb84df05531be6 Mon Sep 17 00:00:00 2001 From: prcastro Date: Wed, 9 Sep 2015 13:13:00 -0300 Subject: [PATCH] Name transition --- .travis.yml | 6 +++--- LICENSE.md | 2 +- README.md | 10 +++++----- doc/build.jl | 12 ++++++------ doc/index.md | 6 +++--- doc/reference/api.md | 3 +-- examples/digits/script.jl | 2 +- examples/xor/script.jl | 2 +- mkdocs.yml | 4 ++-- src/{NeuralNetsLite.jl => Nervoso.jl} | 4 ++-- test/runtests.jl | 14 +++++++------- 11 files changed, 32 insertions(+), 33 deletions(-) rename src/{NeuralNetsLite.jl => Nervoso.jl} (91%) diff --git a/.travis.yml b/.travis.yml index 7c43f68..47fb547 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,7 +9,7 @@ notifications: email: false script: - if [[ -a .git/shallow ]]; then git fetch --unshallow; fi - - julia --check-bounds=yes -e 'Pkg.clone(pwd()); Pkg.build("NeuralNetsLite"); Pkg.test("NeuralNetsLite"; coverage=true)' + - julia --check-bounds=yes -e 'Pkg.clone(pwd()); Pkg.build("Nervoso"); Pkg.test("Nervoso"; coverage=true)' after_success: - - julia -e 'cd(Pkg.dir("NeuralNetsLite")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())' - - julia -e 'cd(Pkg.dir("NeuralNetsLite")); using Coverage; Codecov.submit(Codecov.process_folder())' + - julia -e 'cd(Pkg.dir("Nervoso")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())' + - julia -e 'cd(Pkg.dir("Nervoso")); using Coverage; Codecov.submit(Codecov.process_folder())' diff --git a/LICENSE.md b/LICENSE.md index 4203aef..38ac7a4 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,4 +1,4 @@ -The NeuralNetsLite.jl package is licensed under the MIT "Expat" License: +The Nervoso.jl package is licensed under the MIT "Expat" License: > Copyright (c) 2015: brk00. > diff --git a/README.md b/README.md index 5e8b702..4fa4f8a 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ -# NeuralNetsLite +# Nervoso [![Documentation Status](https://img.shields.io/badge/docs-latest-brightgreen.svg?style=flat-square)](http://neuralnetslitejl.readthedocs.org/en/latest) -[![Travis](https://img.shields.io/travis/prcastro/NeuralNetsLite.jl.svg?style=flat-square)](https://travis-ci.org/prcastro/NeuralNetsLite.jl) -[![Coveralls](https://img.shields.io/coveralls/prcastro/NeuralNetsLite.jl.svg?style=flat-square)](https://coveralls.io/github/prcastro/NeuralNetsLite.jl?branch=master) +[![Travis](https://img.shields.io/travis/prcastro/Nervoso.jl.svg?style=flat-square)](https://travis-ci.org/prcastro/Nervoso.jl) +[![Coveralls](https://img.shields.io/coveralls/prcastro/Nervoso.jl.svg?style=flat-square)](https://coveralls.io/github/prcastro/Nervoso.jl?branch=master) [![License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](LICENSE.md) This package provides a simple implementation of Feedforward Neural Networks. @@ -14,7 +14,7 @@ The main purpose of this package isn't to provide a fast implementation of the a To install this package, simply run: ```julia -Pkg.clone("https://github.com/prcastro/NeuralNetsLite.jl.git") +Pkg.clone("https://github.com/prcastro/Nervoso.jl.git") ``` ## Basic usage @@ -22,7 +22,7 @@ Pkg.clone("https://github.com/prcastro/NeuralNetsLite.jl.git") To use this package, run: ```julia -using NeuralNetsLite +using Nervoso ``` To learn how to use the library, check out the [documentation](http://neuralnetslitejl.readthedocs.org/en/latest). diff --git a/doc/build.jl b/doc/build.jl index ce42e0e..3aea29b 100644 --- a/doc/build.jl +++ b/doc/build.jl @@ -1,9 +1,9 @@ # This script build the API docs and should be run -# only if both NeuralNetsLite and Lexicon are installed -using NeuralNetsLite, Lexicon +# only if both Nervoso and Lexicon are installed +using Nervoso, Lexicon -save("temp.md", NeuralNetsLite, Config( +save("temp.md", Nervoso, Config( md_subheader=:skip, )) @@ -18,8 +18,8 @@ open("temp.md") do temp header_to_code(s) = string("`", s[6:end-2], "`[") d = replace(d, r"#### .* \[", header_to_code) - # Remove "NeuralNetsLite." from readability - d = replace(d, r"NeuralNetsLite\.", "") + # Remove "Nervoso." from readability + d = replace(d, r"Nervoso\.", "") # Remove source links d = replace(d, r"\n\*source:\*\n.*\n", "") @@ -28,7 +28,7 @@ open("temp.md") do temp d = replace(d, r"\[¶\](.*)", s -> string(s,"\n")) # Change title - d = replace(d, r"# NeuralNetsLite", "# API Reference") + d = replace(d, r"# Nervoso", "# API Reference") # Save open(joinpath("reference", "api.md"), "w") do f diff --git a/doc/index.md b/doc/index.md index 9b4816b..09f9b72 100644 --- a/doc/index.md +++ b/doc/index.md @@ -1,4 +1,4 @@ -NeuralNetsLite +Nervoso ============== This package offers a simple-to-understand and general implemementation of feedforward neural networks, focused on correctness and extensibility. @@ -6,11 +6,11 @@ This package offers a simple-to-understand and general implemementation of feedf To install this package, run from inside Julia: ```julia -Pkg.clone("https://github.com/prcastro/NeuralNetsLite.jl.git") +Pkg.clone("https://github.com/prcastro/Nervoso.jl.git") ``` To use it, run: ```julia -using NeuralNetsLite +using Nervoso ``` diff --git a/doc/reference/api.md b/doc/reference/api.md index 7da2dd0..bebbdc4 100644 --- a/doc/reference/api.md +++ b/doc/reference/api.md @@ -109,7 +109,7 @@ Train the Neural Network using the examples provided in `inputs` and `outputs`. `update!(l::FFNNLayer, x::Array{Float64, 1})`[¶](#method__update.1) -Update the internal values of the neurons of a layer +Update the internal values of the neurons of a layer --- @@ -229,4 +229,3 @@ Derivative of the quadratic error with respect to the outputs `⊗(a::Array{Float64, 1}, b::Array{Float64, 1})`[¶](#method__8855.1) Outer product - diff --git a/examples/digits/script.jl b/examples/digits/script.jl index 3f66a9b..a956e43 100644 --- a/examples/digits/script.jl +++ b/examples/digits/script.jl @@ -1,5 +1,5 @@ # Remember to install HDF5 and JLD packages -using HDF5, JLD, NeuralNetsLite +using HDF5, JLD, Nervoso # Initializing our examples and network @load "data.jld" diff --git a/examples/xor/script.jl b/examples/xor/script.jl index 0cb94f6..f0cc08d 100644 --- a/examples/xor/script.jl +++ b/examples/xor/script.jl @@ -1,5 +1,5 @@ # Remember to install HDF5 and JLD packages -using HDF5, JLD, NeuralNetsLite +using HDF5, JLD, Nervoso # Initializing our examples and network @load "data.jld" diff --git a/mkdocs.yml b/mkdocs.yml index 3d76d88..e4c31a6 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -1,8 +1,8 @@ -site_name: NeuralNetsLite.jl +site_name: Nervoso.jl site_description: Simple Neural Networks library written in Julia -repo_url: https://github.com/prcastro/NeuralNetsLite.jl +repo_url: https://github.com/prcastro/Nervoso.jl pages: - 'Introduction': 'index.md' diff --git a/src/NeuralNetsLite.jl b/src/Nervoso.jl similarity index 91% rename from src/NeuralNetsLite.jl rename to src/Nervoso.jl index e632111..9c5735f 100644 --- a/src/NeuralNetsLite.jl +++ b/src/Nervoso.jl @@ -1,6 +1,6 @@ VERSION >= v"0.4.0-dev+6521" && __precompile__(true) -module NeuralNetsLite +module Nervoso import Base: ==, show, length, size, endof, getindex, setindex!, start, next, done, tanh @@ -20,4 +20,4 @@ function __init__() derivatives[ceerror] = ceerrorprime end -end # module NeuralNetsLite +end # module Nervoso diff --git a/test/runtests.jl b/test/runtests.jl index c74ad44..aa05e4d 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,4 +1,4 @@ -using NeuralNetsLite, FactCheck +using Nervoso, FactCheck facts("Layer") do context("Build a layer") do @@ -188,16 +188,16 @@ end facts("Cost functions") do context("Quadratic Error") do - @fact der(quaderror) == NeuralNetsLite.derivatives[quaderror] --> true - @fact der(quaderror) == NeuralNetsLite.quaderrorprime --> true + @fact der(quaderror) == Nervoso.derivatives[quaderror] --> true + @fact der(quaderror) == Nervoso.quaderrorprime --> true @fact quaderror([1.0,0.0], [0.0,1.0]) --> roughly(1.0) - @fact NeuralNetsLite.quaderrorprime([1.0,0.0], [0.0,1.0]) --> [1.0,-1.0] + @fact Nervoso.quaderrorprime([1.0,0.0], [0.0,1.0]) --> [1.0,-1.0] end context("Cross-entropy Error") do - @fact der(ceerror) == NeuralNetsLite.derivatives[ceerror] --> true - @fact der(ceerror) == NeuralNetsLite.ceerrorprime --> true + @fact der(ceerror) == Nervoso.derivatives[ceerror] --> true + @fact der(ceerror) == Nervoso.ceerrorprime --> true @fact ceerror([0.5,0.5], [0.5,0.5]) .< [Inf] --> Bool[true] - @fact NeuralNetsLite.ceerrorprime([0.5,0.5], [0.5,0.5]) --> [-1.0, -1.0] + @fact Nervoso.ceerrorprime([0.5,0.5], [0.5,0.5]) --> [-1.0, -1.0] end end