Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
bc4588e
Not much here. Mostly comments
Oct 27, 2019
ab96e09
First attempt at implementation
Myles-Damon Oct 28, 2019
d975436
New testing notebook & fixed mistakes which stopped the code from runnin
Oct 28, 2019
63ca11b
The C-Sensitivity isn't right for c=1. IDK what is wrong
Myles-Damon Oct 29, 2019
736cf6a
Fixed C-Sensitivity by using distance instead of indicator function
Nov 5, 2019
6463211
Merge branch 'master' into Myles-Branch-C-Sensitivity
Nov 6, 2019
2e3ce46
Merge pull request #1 from akiaei/Myles-Branch-C-Sensitivity
akiaei Nov 6, 2019
a798857
Merge remote-tracking branch 'Original-Elife-ASU/master'
Feb 23, 2020
81ff8c7
:hammer: Create the neet.boolean.random submodule
dglmoore Mar 5, 2020
5bbbd99
:green_heart: Remove CI testing on Python2.7
dglmoore Mar 5, 2020
5124c7c
Merge remote-tracking branch 'Original-Elife-ASU/random' into randomN…
Mar 19, 2020
25691f5
Mar 24, 2020
735e63a
Added basic value/type error checking for constraints
Apr 9, 2020
3b7a4de
Added more constraint test cases
Apr 9, 2020
061c5d6
Finished constraint tests except for generic topological and dynamical
Apr 9, 2020
ce3b0db
Incomplete list of tests for dynamic randomizers
Myles-Damon Apr 23, 2020
6d6d427
Finished constraints testing
Apr 23, 2020
6e1549d
incomplete unit tests for topology
wtopping Apr 23, 2020
d0b56b3
forgot to upload these unit tests
Myles-Damon Apr 27, 2020
7d22227
Fix extra_requires in setup.py
dglmoore Feb 19, 2021
8d46eb4
Omit .eggs/* from green test coverage report
dglmoore Feb 19, 2021
828cbfb
Fix numpy deprecation warnings
dglmoore Feb 20, 2021
91d06e5
Merge pull request #199 from akiaei/randomNetTests
dglmoore Feb 20, 2021
feb3eda
Remove randomization tests
dglmoore Feb 24, 2021
f69ed1e
Include neet.boolean.random during install
dglmoore Dec 9, 2021
f3ea675
Remove c_sensitivity functions
dglmoore Dec 9, 2021
a694050
Unit test neet.boolean.random.constraints
dglmoore Dec 9, 2021
c772bcc
Add tests for neet.boolean.random.topology
dglmoore Dec 14, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ version: 0.1.0.{build}

environment:
matrix:
- PYTHON: "C:\\Python27-x64"
- PYTHON: "C:\\Python35-x64"
- PYTHON: "C:\\Python36-x64"
- PYTHON: "C:\\Python37-x64"
Expand Down
1 change: 1 addition & 0 deletions .green
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
verbose = 1
logging = True
run-coverage = True
omit-patterns = .eggs/*
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ os:
# - osx

python:
- "2.7"
- "3.5"
- "3.6"
- "3.7"
Expand Down
187 changes: 187 additions & 0 deletions examples/Tests.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,187 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"import sys\n",
"sys.path.insert(0,\"../\")\n"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
"%matplotlib inline"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
"from neet.boolean import WTNetwork\n",
"from os.path import join"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
"from neet.boolean.random import constraints, dynamics, randomizer, topology\n"
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {},
"outputs": [],
"source": [
"import test.tests"
]
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {},
"outputs": [],
"source": [
"tn = test.tests.TestNetwork()\n"
]
},
{
"cell_type": "code",
"execution_count": 7,
"metadata": {
"scrolled": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"test passed!\n"
]
}
],
"source": [
"tn.test_uniform_bias()"
]
},
{
"cell_type": "code",
"execution_count": 8,
"metadata": {},
"outputs": [],
"source": [
"#tn.test_external_exclusion()"
]
},
{
"cell_type": "code",
"execution_count": 9,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"test passed!\n"
]
}
],
"source": [
"tn.test_correct_bias()"
]
},
{
"cell_type": "code",
"execution_count": 10,
"metadata": {
"scrolled": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"<class 'float'>\n",
"[((1, 2, 3), {'001', '100'}), ((1, 2, 3), {'011', '101'}), ((1, 2, 3), {'111'}), ((1, 2, 3), {'000', '010', '111'})]\n",
"bias_1: 8.0\n",
"row_count_1: 4.0\n",
"mean_1: 2.0\n",
"[((1, 2, 3), {'100', '000'}), ((1, 2, 3), {'011', '001'}), ((1, 2, 3), {'100', '010'}), ((1, 2, 3), {'110', '101'})]\n",
"bias_2: 8.0\n",
"row_count_2: 4.0\n",
"mean_2: 2.0\n"
]
}
],
"source": [
"tn.test_correct_mean(tn.net4, printq=False, debug=True)"
]
},
{
"cell_type": "code",
"execution_count": 11,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"test passed!\n"
]
}
],
"source": [
"tn.test_correct_local()"
]
},
{
"cell_type": "code",
"execution_count": 12,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"test passed!\n"
]
}
],
"source": [
"tn.test_correct_errors_thrown()"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.3"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
145 changes: 145 additions & 0 deletions examples/Untitled.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"import sys\n",
"sys.path.insert(0,\"../\")\n"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
"%matplotlib inline"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
"from neet.boolean import WTNetwork\n",
"from os.path import join"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
"from neet.boolean.random import constraints, dynamics, randomizer, topology\n"
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {},
"outputs": [],
"source": [
"import test.tests"
]
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {},
"outputs": [],
"source": [
"tn = test.tests.TestNetwork()\n"
]
},
{
"cell_type": "code",
"execution_count": 7,
"metadata": {
"scrolled": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"test passed!\n"
]
}
],
"source": [
"tn.test_uniform_bias()"
]
},
{
"cell_type": "code",
"execution_count": 8,
"metadata": {},
"outputs": [],
"source": [
"#tn.test_external_exclusion()"
]
},
{
"cell_type": "code",
"execution_count": 9,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"test passed!\n"
]
}
],
"source": [
"tn.test_correct_bias()"
]
},
{
"cell_type": "code",
"execution_count": 10,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"<class 'float'>\n",
"[((1, 2, 3), {'001', '100'}), ((1, 2, 3), {'101', '011'}), ((1, 2, 3), {'111'}), ((1, 2, 3), {'111', '010', '000'})]\n",
"[((1, 2, 3), {'010', '000'}), ((1, 2, 3), {'111', '000'}), ((1, 2, 3), {'110', '010'}), ((1, 2, 3), {'011', '110'})]\n"
]
}
],
"source": [
"tn.test_correct_mean(tn.net4, printq=False, debug=True)"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.3"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
1 change: 1 addition & 0 deletions neet/boolean/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@
from .wtnetwork import WTNetwork # noqa
from .logicnetwork import LogicNetwork # noqa
from .sensitivity import SensitivityMixin # noqa
from . import random # noqa
4 changes: 4 additions & 0 deletions neet/boolean/random/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from . import constraints # noqa
from . import randomizer # noqa
from . import topology # noqa
from . import dynamics # noqa
Loading