Difference between revisions of "Neural networks"

From Wiki2
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
= neural networks =
=== refs ===
* http://neuralnetworksanddeeplearning.com/chap3.html#softmax
* https://www.tensorflow.org/versions/r0.12/tutorials/mnist/beginners/
* https://www.youtube.com/playlist?list=PLLvH2FwAQhnpj1WEB-jHmPuUeQ8mX-XXGindex.html
* http://colah.github.io/posts/2015-09-Visual-Information/
* https://hackernoon.com/traffic-signs-classification-with-deep-learning-b0cb03e23efb#.l7el8mov4
nyt
* http://www.nytimes.com/2016/12/14/magazine/the-great-ai-awakening.html
* http://www.cs.toronto.edu/~fritz/absps/ncfast.pdf
* http://www.jmlr.org/papers/volume3/bengio03a/bengio03a.pdf
* https://arxiv.org/abs/1409.3215
* https://arxiv.org/pdf/1409.0473v7.pdf
* https://arxiv.org/pdf/1409.1259v2.pdf
* https://www.aclweb.org/anthology/P/P15/P15-1166.pdf
* https://arxiv.org/pdf/1606.04199.pdf
* https://arxiv.org/abs/1609.08144
* https://www.cs.toronto.edu/~hinton/absps/JMLRdropout.pdf


<markdown>
<markdown>
# neural networks
#virtualenv
## refs
* http://neuralnetworksanddeeplearning.com/chap3.html#softmax
* https://www.tensorflow.org/versions/r0.12/tutorials/mnist/beginners/index.html
## setup
## setup
 
    $ pip install --upgrade pip
    $ pip install tensorflow -q
    $ pip install --upgrade matplotlib
    $ python -m pip install --upgrade pip
     $ mkdir p3test
     $ mkdir p3test
     $ cd p3test/
     $ cd p3test/  
     $ virtualenv -p /c/Users/tim/Anaconda3/python.exe venv  
     $ virtualenv -p /c/Users/tim/Anaconda3/python.exe venv  
     //for python 3.5 or  /c/Python27/python.exe for version2.7
     //for python 3.5 or  /c/Python27/python.exe for version2.7
Line 16: Line 38:
prove its working
prove its working


    $ python
     Python 3.5.2 |Continuum Analytics, Inc.| (default, Jul  5 2016, 11:41:13) [MSC v.1900 64 bit (AMD64)] on win32
     Python 3.5.2 |Continuum Analytics, Inc.| (default, Jul  5 2016, 11:41:13) [MSC v.1900 64 bit (AMD64)] on win32
     Type "help", "copyright", "credits" or "license" for more information.
     Type "help", "copyright", "credits" or "license" for more information.
Line 22: Line 45:
     >>> answer - tf.matmul([[7,], [6,]])
     >>> answer - tf.matmul([[7,], [6,]])


deactivate isn't there but you can add it to venv/Scripts/deactivate
# This file must be used with "source bin/activate" *from bash*
# you cannot run it directly
deactivate () {
    unset pydoc
    # reset old environment variables
    if [ -n "$_OLD_VIRTUAL_PATH" ] ; then
        PATH="$_OLD_VIRTUAL_PATH"
        export PATH
        unset _OLD_VIRTUAL_PATH
    fi
    if [ -n "$_OLD_VIRTUAL_PYTHONHOME" ] ; then
        PYTHONHOME="$_OLD_VIRTUAL_PYTHONHOME"
        export PYTHONHOME
        unset _OLD_VIRTUAL_PYTHONHOME
    fi
    # This should detect bash and zsh, which have a hash command that must
    # be called to get it to forget past commands.  Without forgetting
    # past commands the $PATH changes we made may not be respected
    if [ -n "$BASH" -o -n "$ZSH_VERSION" ] ; then
        hash -r 2>/dev/null
    fi
    if [ -n "$_OLD_VIRTUAL_PS1" ] ; then
        PS1="$_OLD_VIRTUAL_PS1"
        export PS1
        unset _OLD_VIRTUAL_PS1
    fi
    unset VIRTUAL_ENV
    if [ ! "$1" = "nondestructive" ] ; then
    # Self destruct!
        unset -f deactivate
    fi
    }
    # unset irrelevant variables
    deactivate nondestructive





Latest revision as of 18:40, 18 December 2016


neural networks

refs

nyt

<markdown>

  1. virtualenv
    1. setup
   $ pip install --upgrade pip
   $ pip install tensorflow -q
   $ pip install --upgrade matplotlib
   $ python -m pip install --upgrade pip
   $ mkdir p3test
   $ cd p3test/ 
   $ virtualenv -p /c/Users/tim/Anaconda3/python.exe venv 
   //for python 3.5 or  /c/Python27/python.exe for version2.7
   tim@TIM-HP /c/wamp/www/python/p3test (master)
   $ source venv/Scripts/activate

prove its working

   $ python
   Python 3.5.2 |Continuum Analytics, Inc.| (default, Jul  5 2016, 11:41:13) [MSC v.1900 64 bit (AMD64)] on win32
   Type "help", "copyright", "credits" or "license" for more information.
   >>> import tensorflow as tf
   >>> sess=tf.Session()
   >>> answer - tf.matmul([[7,], [6,]])

deactivate isn't there but you can add it to venv/Scripts/deactivate

  1. This file must be used with "source bin/activate" *from bash*
  2. you cannot run it directly

deactivate () {

   unset pydoc
   # reset old environment variables
   if [ -n "$_OLD_VIRTUAL_PATH" ] ; then
       PATH="$_OLD_VIRTUAL_PATH"
       export PATH
       unset _OLD_VIRTUAL_PATH
   fi
   if [ -n "$_OLD_VIRTUAL_PYTHONHOME" ] ; then
       PYTHONHOME="$_OLD_VIRTUAL_PYTHONHOME"
       export PYTHONHOME
       unset _OLD_VIRTUAL_PYTHONHOME
   fi
   # This should detect bash and zsh, which have a hash command that must
   # be called to get it to forget past commands.  Without forgetting
   # past commands the $PATH changes we made may not be respected
   if [ -n "$BASH" -o -n "$ZSH_VERSION" ] ; then
       hash -r 2>/dev/null
   fi
   if [ -n "$_OLD_VIRTUAL_PS1" ] ; then
       PS1="$_OLD_VIRTUAL_PS1"
       export PS1
       unset _OLD_VIRTUAL_PS1
   fi
   unset VIRTUAL_ENV
   if [ ! "$1" = "nondestructive" ] ; then
   # Self destruct!
       unset -f deactivate
   fi
   }
   # unset irrelevant variables
   deactivate nondestructive



</markdown>