Skip to content

Commit

Permalink
Name transition
Browse files Browse the repository at this point in the history
  • Loading branch information
prcastro committed Sep 9, 2015
1 parent 5a94a64 commit 083f256
Show file tree
Hide file tree
Showing 11 changed files with 32 additions and 33 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Expand Up @@ -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())'
2 changes: 1 addition & 1 deletion 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.
>
Expand Down
10 changes: 5 additions & 5 deletions 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.
Expand All @@ -14,15 +14,15 @@ 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

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).
12 changes: 6 additions & 6 deletions 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,
))

Expand All @@ -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", "")
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions doc/index.md
@@ -1,16 +1,16 @@
NeuralNetsLite
Nervoso
==============

This package offers a simple-to-understand and general implemementation of feedforward neural networks, focused on correctness and extensibility.

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
```
3 changes: 1 addition & 2 deletions doc/reference/api.md
Expand Up @@ -109,7 +109,7 @@ Train the Neural Network using the examples provided in `inputs` and `outputs`.
<a id="method__update.1" class="lexicon_definition"></a>
`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

---

Expand Down Expand Up @@ -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

2 changes: 1 addition & 1 deletion 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"
Expand Down
2 changes: 1 addition & 1 deletion 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"
Expand Down
4 changes: 2 additions & 2 deletions 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'
Expand Down
4 changes: 2 additions & 2 deletions src/NeuralNetsLite.jl → 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
Expand All @@ -20,4 +20,4 @@ function __init__()
derivatives[ceerror] = ceerrorprime
end

end # module NeuralNetsLite
end # module Nervoso
14 changes: 7 additions & 7 deletions test/runtests.jl
@@ -1,4 +1,4 @@
using NeuralNetsLite, FactCheck
using Nervoso, FactCheck

facts("Layer") do
context("Build a layer") do
Expand Down Expand Up @@ -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

0 comments on commit 083f256

Please sign in to comment.