Code Monkey home page Code Monkey logo

ibm-developer's Introduction

developerWorks

ibm-developer's People

Contributors

romeokienzler avatar sophie-greene avatar

Stargazers

 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  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  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

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

ibm-developer's Issues

week 3/ai, crude oil prices

Heya, first of all, thanks for your talk (I am the guy with the dopamin kick, if you remember :) ) ! I got a small problem with plotting the predicted oil prices. For me it looks like the predicted values are a very flat graph:
screen shot 2018-01-25 at 13 37 23

I figured out what the problem is: the test_set is an array with one scalar vector (dtype=object).
y_test meanwhile is an array with one float64 vector.
Plotting the object values seems to produce the wrong graph.

One solution would be following:
plt.plot(np.float64(test_set)[timesteps:len(y_test)], color = 'red', label = 'Real Crude Oil Prices')

this fixes it for me:
screen shot 2018-01-25 at 14 06 34

The other plots further down and at the beginning would need the same treatment.

Doing it in this cell is probably not the ideal location tho.

For reference, I am running:

Python: 3.6.3
Keras: 2.1.3
tensorflow: 1.4.0

a0_m4_exercice3.1.ipynb: database format should be "com.cloudant.spark"

Currently

def readDataFrameFromCloudant(database):
    cloudantdata=spark.read.load(database, "org.apache.bahir.cloudant")
    (...)

This results in exception Py4JJavaError: An error occurred while calling o274.load. : java.lang.ClassNotFoundException: Failed to find data source: org.apache.bahir.cloudant.

Expected

def readDataFrameFromCloudant(database):
    cloudantdata=spark.read.load(database, "com.cloudant.spark")

submit function

In the final cell in the notebook

from rklib import submit
key = "XbAMqtjdEeepUgo7OOVwng"
part = "LqPRQ"
email = "###_YOUR_CODE_GOES_HERE_###"
secret = "###_YOUR_CODE_GOES_HERE_###"
submit(email, secret, key, part)

The submit function defined in rklib.py is called with 4 arguments while it's defined to take 6. all_parts and data are missing

AssignmentAnomalyDetection

score(data_healthy_scaled),
score(data_broken_scaled)

with method call
def score(data):
return model.#### your code here ###(data)

How did model calculate score without providing the label (or, y_test), as model.evaluate require x_test and y_test.

boomboomshakeshakesparkv2.ipynb : installPackage link should be changed

Currently

import pixiedust
pixiedust.installPackage("https://github.com/romeokienzler/developerWorks/raw/master/coursera/spark-sql-cloudant_2.11-2.3.0-SNAPSHOT.jar")

Result

"Link not found"


To solve this prob., I found new link in github.

https://github.com/iambenn/coursera-1/spark-sql-cloudant_2.11-2.3.0-SNAPSHOT.jar

Link connection was good, but It occurs another error.

Error

'NoneType' object has no attribute 'strip'

Solution(?)

import pixiedust
#pixiedust.installPackage("https://github.com/romeokienzler/developerWorks/raw/master/coursera/spark-sql-cloudant_2.11-2.3.0-SNAPSHOT.jar")

It works good.


Actually, I can't find what is real problem. maybe jar file, or service env.

Thanks

Update for Python 3

Hi,

Working through your tutorial, it looks like IBM Cloud no longer offers Python 2 notebooks, You might want to update the notebooks downloaded as part of the tutorial to work with Python 3.

Thanks.

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.