Skip to main content

A Python Pacakage for Ready Made Machine Learning Solutions.

Project description

Ml-Solutions

A Python Pacakage for Ready Made Machine Learning Solutions.

Installation

To install this package, you have to run this command on your terminal


pip install ml-solutions

Quick Start Guide

from ml_solutions import solutions



# Spam Message Detector



spam_message_detector = solutions.SpamMessageDetector()

spam_message_detector.train()

detected = spam_message_detector.detect_spam('Please subscribe my youtube channel for 100 years of good luck!')



if detected == True:

    print("Message is Spam!")

else:

    print("The message is not Spam!")



# House Price Prediction



house_price_predictor = solutions.HousePricePrediction()

house_price_predictor.train()

Price = house_price_predictor.get_price(rooms=2, bathrooms=1, landsize=230, lattidute=-346.876, longtitude=347.378)

print(Price)



# Image Classification



# Training and Saving The Model

image_classifier = solutions.ImageClassification()

image_classifier.train()

image_classifier.save_model('image_classifier')



# After that you will see your training of the model has been started!

# When training is complete, then remove all the code and write:



# Loading the Model

image_classifier = solutions.ImageClassification()

image_classifier.load_model('image_classifier')

# For image classification, you need a 32*32 px image, to convert your image into a 32*32 px image, go into this website: https://www.privatedaddy.com/resize-to-32x32

# After you converted your image, give the path to the 32*32 image

recognized = image_classifier.recognize_image('image.jpg')

print(recognized)



# You will see the name of the thing in the image :)

# This supports with 'Plane', 'Car', 'Bird', 'Cat', 'Deer', 'Dog', 'Frog', 'Horse', 'Ship', 'Truck'



# And we have more Ml Solutions :)

ML Algorithms

from ml_solutions import algorithms



# HLRegression (HyperLinearRegression)

X_train = np.array(X_train)

Y_train = np.array(Y_train)

X_test = np.array(X_test)



model = algorithms.HLRegression()

model.train_model(X_train, Y_train)

Prediction = model.predict(X_test)

print(Prediction)



# We will make more algorithms :)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ml-solutions-0.0.3.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ml_solutions-0.0.3-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file ml-solutions-0.0.3.tar.gz.

File metadata

  • Download URL: ml-solutions-0.0.3.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.0

File hashes

Hashes for ml-solutions-0.0.3.tar.gz
Algorithm Hash digest
SHA256 aa3b7b0f00ddfe2172c881e087fd4ec3cbb8fa2f4194e4ea0b406b8f3bd21edc
MD5 506b82f884f404f83ed00cdbb2b87b7f
BLAKE2b-256 9f9e6318183b393b9c2bacfdb92140e2a2f037d1713d47d00c77c7f5cd4357d6

See more details on using hashes here.

File details

Details for the file ml_solutions-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: ml_solutions-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.0

File hashes

Hashes for ml_solutions-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ee5042abaa0c4e30a615d1971bd7e4754283437908fa43bb3c3e6e2464be85c2
MD5 63cd79ab5fd7943188d501b758ea3c1f
BLAKE2b-256 993a455f75fc83f9b44aaacb0b1e9a668b1d360c222e8a03627ed86cb19e265f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page