bluedatainc / solutions Goto Github PK
View Code? Open in Web Editor NEWsolutions
solutions
Currently, the first three cells are as follows:
############### Cell 1 START ###############
import numpy as np
import pandas as pd
from sklearn import decomposition
import pickle
import matplotlib.pyplot as plt
############### Cell 1 STOP ###############
############### Cell 2 START ###############
# Get project repo
def myProjectRepo():
ProjectRepo = os.popen('bdvcli --get cluster.project_repo').read().rstrip() # AAA
return ProjectRepo
############### Cell 2 STOP ###############
############### Cell 3 START ###############
# nfs path is used as a common repository to store code, data and ML models
nfs_path = myProjectRepo()
print('nfs_path: '+ nfs_path)
############### Cell 3 STOP ###############
When we hit the line with the comment AAA
, we get an error -
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<ipython-input-3-7d07dfab3800> in <module>
1 # nfs path is used as a common repository to store code, data and ML models
----> 2 nfs_path = myProjectRepo()
3 print('nfs_path: '+ nfs_path)
<ipython-input-2-4d9d828c6210> in myProjectRepo()
1 # Get project repo
2 def myProjectRepo():
----> 3 ProjectRepo = os.popen('bdvcli --get cluster.project_repo').read().rstrip()
4 return ProjectRepo
NameError: name 'os' is not defined
This can be trivially fixed by changing the imports in cell 1 to be like this:
import os
import numpy as np
import pandas as pd
from sklearn import decomposition
import pickle
import matplotlib.pyplot as plt
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.