Giter Club home page Giter Club logo

amirali5 / machine-learning Goto Github PK

View Code? Open in Web Editor NEW
43.0 43.0 35.0 3.83 MB

In this repo, all about Machine Learning and I covered both Supervised and Unsupervised Learning Techniques with Practical Implementation. Everything from scratch and I solved a lot of different problems with different Machine Learning techniques either related to Healthcare, E-commerce, Sports, or Daily Business Issues.

Home Page: https://www.amazon.com/dp/1090626797

Jupyter Notebook 99.75% Python 0.25%
machine-learning supervised-machine-learning unsupervised-machine-learning

machine-learning's Introduction

Amir Ali Cover.

About me Website

◈ Azure Machine Learning Engineer at Microsoft
◈ Founder and CEO at The Art of Data Science
◈ Master's Degree in Data Science at Warsaw University of Technology, Warsaw
◈ Bachelor's Degree in Computer Science at the University of Engineering and Technology, Lahore
◈ Research Interest in Machine Learning, Deep Learning, Natural Language Processing
◈ Author and Co-Author of more than 10 publications including Journal Papers, Conference Papers, Books, Technical Reports. purple-divider

My Stats

GitHub stats

GitHub streak stats

purple-divider

Academic Profiles

googlescholar researchgate academia amazon medium

Social Profiles

linkedin facebook instagram twitter YouTube

purple-divider

machine-learning's People

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

Watchers

 avatar  avatar  avatar  avatar

machine-learning's Issues

ValueError: X has 2 features per sample; expecting 9

1.Supervised Learning/2.Classification/5.Logistic Regression/Breast Cancer Coimbra Dataset (UCI) prediction.ipynb

Visualising the Test set results

from matplotlib.colors import ListedColormap
X_set, y_set = X_test, y_test
X1, X2 = np.meshgrid(np.arange(start = X_set[:, 0].min() - 1, stop = X_set[:, 0].max() + 1, step = 0.01),
np.arange(start = X_set[:, 1].min() - 1, stop = X_set[:, 1].max() + 1, step = 0.01))
plt.contourf(X1, X2, LG.predict(np.array([X1.ravel(), X2.ravel()]).T).reshape(X1.shape),
alpha = 0.75, cmap = ListedColormap(('red', 'green')))
plt.xlim(X1.min(), X1.max())
plt.ylim(X2.min(), X2.max())
for i, j in enumerate(np.unique(y_set)):
plt.scatter(X_set[y_set == j, 0], X_set[y_set == j, 1],
c = ListedColormap(('red', 'green'))(i), label = j)
plt.title('Logistic Regression (Test set)')
plt.xlabel('Distance')
plt.ylabel('Cities')
plt.legend()
plt.show()


ValueError Traceback (most recent call last)
in
4 X1, X2 = np.meshgrid(np.arange(start = X_set[:, 0].min() - 1, stop = X_set[:, 0].max() + 1, step = 0.01),
5 np.arange(start = X_set[:, 1].min() - 1, stop = X_set[:, 1].max() + 1, step = 0.01))
----> 6 plt.contourf(X1, X2, LG.predict(np.array([X1.ravel(), X2.ravel()]).T).reshape(X1.shape),
7 alpha = 0.75, cmap = ListedColormap(('red', 'green')))
8 plt.xlim(X1.min(), X1.max())

~\Anaconda3\lib\site-packages\sklearn\linear_model\base.py in predict(self, X)
279 Predicted class label per sample.
280 """
--> 281 scores = self.decision_function(X)
282 if len(scores.shape) == 1:
283 indices = (scores > 0).astype(np.int)

~\Anaconda3\lib\site-packages\sklearn\linear_model\base.py in decision_function(self, X)
260 if X.shape[1] != n_features:
261 raise ValueError("X has %d features per sample; expecting %d"
--> 262 % (X.shape[1], n_features))
263
264 scores = safe_sparse_dot(X, self.coef_.T,

ValueError: X has 2 features per sample; expecting 9

Asking

That is not an issue, but im just wondering what is the use of the frozenset in the mining frequent pattern step

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.