buntyke / tro2017 Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
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
from tabulate import tabulate
is showing following error:
No module named tabulate
Workaround
Use following command to install tabulate
sudo pip install tabulate
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
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
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
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'))
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.