Code Monkey home page Code Monkey logo

aipnd's Issues

Error Message when trying to open in Jupyter Notebook

Hello, I downloaded Mean Normalization and Data Separation.ipynb from https://github.com/udacity/AIPND/tree/master/NumPy%20Mini-Project, but the following error message appeared when I tried to open the file in a Jupyter Notebook:

"Unreadable Notebook: C:\Users\Christophe\Documents\Informatique\MOOC\Data Scientist Nanodegree - Udacity\Jupyter Notebooks\Mean Normalization and Data Separation.ipynb NotJSONError("Notebook does not appear to be JSON: '\n\n\n\n\n\n\n<html lang...")"

Any suggestions? Thanks.

Missing Matplotlib Dataset

A file is missing from the Matplotlib / data directory. A dataset is consistently used in the lessons that includes "Alpha","Beta", "Gamma", etc. values.

In order to properly do those exercises, I had to randomly generate Grade data as a substitute:

# Back to auto-generated data for the following steps
student_grades = []
for student in range(30):
  student_grades.append(random.choice(['A','B','C','D','F']))
grades = pd.DataFrame({'Grades': pd.Series(student_grades)})
grades.head()

I had to replace all instances of df in his example code with grades, and replaced all instances of cat_var with Grades. His examples in messing with the resulting bar graphs should apply in the same way with grades as he is doing with Alpha, Beta, etc.

This worked properly with examples, such as categorical ordering:

# With grades, or categorical / ordinal data that is ranked by type,
# we may care about an explicit order. Ordering it up!
level_order = ['A', 'B', 'C', 'D', 'F']
ordered_cat = pd.api.types.CategoricalDtype(ordered = True, categories = level_order)
grades['Grades'] = grades['Grades'].astype(ordered_cat)
# Display graph
base_color = sb.color_palette()[0]
sb.countplot(data = grades, x = 'Grades', color = base_color);

I have added more detailed information as an answer to a question in the Udacity Knowledge Base, where someone ran into the same problem, accessible behind an authenticated page: How to practice examples (matplotlib/seaborn) with no .csv file available for download??

Extra usage of variable 'found'

The usage of variable 'found' starting from line 148 is not required and can be done without it. Usage of 'found' is creating unboundLocalError.

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.