Skip to content

saniaarora15/Flow2ML

 
 

Repository files navigation

Flow2ML

Issues PRs Forks Stars Contributors PyPi Version

Table Of Contents

Introduction

Write only a Few Lines of Machine learning code using Flow2Ml

Quickly design and customize pre-processing workflow in machine learning. Obtain training, validating samples with only 3 lines of code using Flow2ML toolkit

Check Installation and sample code to flow into your ML model much faster and efficiently.

Why Flow2ML

Flow2ML is an open-source library to make the machine learning process much simpler. It loads the image data and applies the given filters and returns train data, train labels, validation data, and validation labels. For all these steps it just takes 3 lines of code. It mostly helps beginners in the field of machine learning and deep learning where the user would deal with image-related data.

Programming languages and technologies used:

  1. Python
  2. HTML
  3. Numpy library
  4. OpenCV
  5. Machine Learning

Dependencies

Before Running the code you need to have certain packages to be installed. They are listed out here

  1. cv2
  2. os
  3. shutil
  4. sklearn
  5. numpy
  6. matplotlib

Open Source programs that Flow2ML is a part of:

Download all Dependencies by :

pip install -r requirements.txt

Installation

Install Flow2ML python files via pip.

    $ pip install flow2ml==1.0.3

Sample Code

    # To be given input by the user.
    img_dimensions = (150,150,3)
    test_val_split = 0.1

    # Import flow2ml package
    from flow2ml import Flow

    # Give the Dataset and Data directories
    flow = Flow( 'dataset_dir' , 'data_dir' )

    # Define The Filers to be used
    filters = ["median", "laplacian", "gaussian", "sobelx", "sobely"]

    # Apply The Filters
    flow.applyFilters( filters )

    # Obtain Train, Validation data splits
    (train_x, train_y, val_x, val_y) = flow.getDataset( img_dimensions, test_val_split )

Please try to maintain the dataset in the following manner in order to run the code easily.


dataset_dir
├──data_dir/
|       ├──Label 1 Folder
|       ├──Label 2 Folder
|       ├──Label 3 Folder  
|               .
|               .
|               .        
|       └──Label n Folder 
| 
└────Other Files

Contributing

If you want to contribute to Flow2Ml, Please look into issues and propose your solutions to them. We promote contributions from all developers regardless of them being a beginner or a pro. We go by the moto Caffeinate☕|| Collaborate🤝🏼|| Celebrate🎊 before that, please read contributing guidelines

Contributors👩🏽‍💻👨‍💻

Credits goes to these wonderful people:✨

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%