GithubHelp home page GithubHelp logo

deep-meme's Introduction

Deep-meme

A neural network for meme analysis, classification and lifetime expectancy

Getting Started

This project began using simple statistical methods to make label predictions, as such the linear_regression.py file can be run using the regression requirements while the neural network model can be run using the network requirements.

Requirements

In order to get the linear regression program working, the following packages must be installed:

  • matplotlib
  • sklearn
  • pandas

Running the program

The following program has only been tested with Python verison 3.7.4

Run

linear_regression.py

Running the network model

The network model is comprised of several files with separate functions. First the data is scraped from the Reddit API. The data is then imported through CSV to the data preparation file which converts the data into the appropriate form for the network model.

Requirements

In order to get the linear regression program working, the following packages must be installed:

  • praw
  • opencv-python
  • h5py
  • keras
  • tensorflow

This file will export the reddit API as CSV data

run

scraper.py

Once the [exported_data.csv] has exported to the working directory run

data_prep.py

Data prep will perform several functions including regularisation, converting the data into objects and labels as well as the necessary h5 object conversions.

Executing the network

The model can now read in the data.h5 file and begin making predictions

run

CNN.py

These predictions can then be saved as a pre-trained model which is exported as model.h5

Execute the test file

run

run.py

Authors

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.