Giter Site home page Giter Site logo

tro2017's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

tro2017's Issues

ipython experiment.ipynb is showing error

ipython experiment.ipynb is showing error

ravi@lab:~/GitHub/TRo2017/Experiments/Exp1$ ipython experiment.ipynb
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
/home/ravi/GitHub/TRo2017/Experiments/Exp1/experiment.ipynb in <module>()
     15   {
     16    "cell_type": "code",
---> 17    "execution_count": null,
     18    "metadata": {
     19     "collapsed": false

NameError: name 'null' is not defined

Workaround

Use jupyter-notebook

No module named tabulate

from tabulate import tabulate

is showing following error:

No module named tabulate

Workaround
Use following command to install tabulate

sudo pip install tabulate

name 'os' is not defined

In Experiment 2
name 'os' is not defined

---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-2-a6563d4d5849> in <module>()
     14 # create directory for results
     15 dName = '../Results/Exp2'
---> 16 if not os.path.exists(dName):
     17     os.makedirs(dName)
     18 

NameError: name 'metricData' is not defined

Following line is throwing error:
pcaErr = [metricData['PCA']['Err'][0],np.asarray(metricData['PCA']['Err'][1:]).mean()]

Below is the error trace:

NameError                                 Traceback (most recent call last)
<ipython-input-16-1ef88bf852d2> in <module>()
----> 1 pcaErr = [metricData['PCA']['Err'][0],np.asarray(metricData['PCA']['Err'][1:]).mean()]
      2 bgplvmErr = [metricData['BGPLVM']['Err'][0],np.asarray(metricData['BGPLVM']['Err'][1:]).mean()]
      3 
      4 pcaNormErr = [metricData['PCA']['NormErr'][0],np.asarray(metricData['PCA']['NormErr'][1:]).mean()]
      5 bgplvmNormErr = [metricData['BGPLVM']['NormErr'][0],np.asarray(metricData['BGPLVM']['NormErr'][1:]).mean()]

NameError: name 'metricData' is not defined

urllib3 related error "InsecurePlatformWarning: A true SSLContext object is not available"

This error is not directly related to the code. However it can be seen while trying to update jupyter. Below is the error message:

IOError: [Errno 2] No such file or directory: '/usr/local/lib/python2.7/dist-packages/appdirs-1.4.0.dist-info/METADATA'
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning

Workaround:

It seems that urllib3 is creating some blockage while jupyter is trying to update itself. Removing urllib3 doesn't help in this case. Below is the workaround:

pip install appdirs --upgrade

IOError: [Errno 2] No such file or directory: '../Data/Data.p'

In experiment1.ipynb file inside Exp2
IOError: [Errno 2] No such file or directory: '../Data/Data.p'

---------------------------------------------------------------------------
IOError                                   Traceback (most recent call last)
<ipython-input-2-38024038fe02> in <module>()
     20 
     21 # load dataset
---> 22 Data = pickle.load(open('../Data/Data.p','rb'))

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.