Git Product home page Git Product logo

solutions's People

Contributors

amm-bd avatar joshuawonghpe avatar jwlv avatar kmathur2 avatar nandav avatar nbindra avatar sahithigunna avatar sandatahpe avatar saurabh-jogalekar avatar snowch avatar srujanattunuri avatar supekar avatar terryc-hpe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

solutions's Issues

On branch kartik-solutions, DecomposeImages uses the python os library without importing it.

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

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.