ibm-developer's Introduction
ibm-developer's People
Forkers
leehaesung vistada santu003 sshankarn sherihananver sbulathsinghala-netjets rajatsharda ashkarkhan parkhsu msegzda oscarcuenca mohsenhaghaieghshenasfard mdpatankar sayanseth aroopk m30m kradolfer valtyx chrigui94 adwaitsarnobat newtonmwai bballamudi pavelast sophie-greene opprud nurikh jyuan0128 sukantpalo loren-murphy penhchet savioz vkx-11 uday-singh m-pooja eherrador shahir123 arunv22 chirag-sachdeva wunlung young2059 deromed2000 pavanjuturu codebehindme mahmutkocak thesukantadey roha60 manisha-kadam turbolink hooboi100 gradpratik bhasinnj vivekbirugupta hari624 j-moana dgscharan vishnuharish12 julioog agrawalparth08 guruprasadgopalarao hanneshoettinger dialoga sumeetparashar lwitthauer yeshihappy lynch-bl napboa p9anand muhalisu ptitvert shkdidrlf kulka193 anshulsg annadai1001 y-v-p jack05jack pilotbear magikaiman yluo24 a1j4rp brahmac vijusr carolynl rajdharmendraiiitg snehalgupta iammasariya daltonlintz shaikhzhas fatimaferrao barakavrahami aaroncosmos ericphilbaz hbl4310 kingsleytorlowei polhuyzentruyt carlo-carandang hjoab raina140291 fayazr krishnakanthtg shivamsingh17ibm-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:
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')
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.