trainingbypackt / artificial-intelligence-and-machine-learning-fundamentals Goto Github PK
View Code? Open in Web Editor NEWGet started with the development of real-world applications that are powered by the latest AI advances
License: MIT License
Get started with the development of real-world applications that are powered by the latest AI advances
License: MIT License
line 6 defines a function def succ
. I think since this if for successors the actual word can be used to name the function. There is a similar funciton name in Exercises 3,4 and 5
Also you can give two empty lines above the function for readability reasons.
Running gameloop() gives and error on lines 55 and 56.
This
row = int( input( prompt='Enter row: ' ) )
should look like this
row = int(input('Enter row: '))
The input function doesn't take keyword arguments
Also it's not pythonic to leave spaces in a bracket, example ( input( "Enter row: " ) )
should be like this (input("Enter row: "))
It will be nice to add comments to all the code files so that readers of the code can understand what is going on. At the point there is none at all
I suggest using pylint or pycodestyle to make the code adhere to PEP8 standards
NameError: name 'model_selection' is not defined
on line 9plot.show()
at the end solves this issueHi @zsolt-nagy
Please I would like to ask if you could hold making commits while I'm reviewing the codes. I downloaded the code to my machine to review and run them so if you make commits it worries.
I see you changed the location of some activities and it's messed with the names of my issues and some of the comments. Thanks
Add plot.show()
at the end of scripts to show the plot after running the code.
Numpy has been imported as np.
On line 9, numpy.matrix.transpose(A)
throws a NameError
should be np.matrix.transpose(A)
instead.
running cross_validation.py
gives a NameError: name 'preprocessing' is not defined
error.
I'm wondering why it says cross validation but we aren't doing any cross validation. Scikit-learn has a cross_val_score
function for doing cross validation. I think it could be very helpful here.
NameError: name 'confusion_matrix' is not defined
on line 80 of digits.py and 88 of digits_deep.py
hint: confusion_matrix was not imported
running prediction.py gives a NameError: name 'svm' is not defined
on line 74
Running gameloop() gives and error on lines 63 and 64.
This
row = int( input( prompt='Enter row: ' ) )
should look like this
row = int(input('Enter row: '))
I think you should rename the exercise file from numpy.py. This can cause errors when you run the code. Because since numpy.py exists in the directory where you'll be running the code, it will import that instead of the numpy module that we installed.
Wrong file name used in lines 6, 24 and 37 of image_clustering.py
hint: the file name starts with a capital letter
KMeans
model was not imported
There seems to be a lot of repeated code in image_clustering.py. Can you try to use functions. Also you're loading and reading the same image inside two for loops. Can you take that process out of for loops and find a way to load it just once.
Please check line 6, dataFrame.replace() gives a syntax error.
I fixed it by copying the variable name dataFrame and replacing it with that of line 6
Pandas is not imported. Causes it to throw and error.
NameError: name 'classification_report' is not defined
Import classifcation_report from sklearn.metrics lik so
from sklearn.metrics import classification_report
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.