Git Product home page Git Product logo

onp-data-transform's Introduction

ONP-data-transform

Online News Popularity Project for I590

This is a JAVA parser program to read and transform the Online News Popularity Database in order to reduce and transform the feature columns to make the plots more readable and interpretable for our Project.

The R scripts used to create models over this database and generate plots to analyze can be found here : Online-News-Popularity

Need to know things:

  1. The program expects to find the dataset in resources/ folder
  2. src.com.onp.main.Launcher.java is the main file to execute from.
  3. src.com.onp.util.DataEntry.java is the outline of we store data for each data entry.
  4. main() contains all the essential calls.
  5. Function call objLauncher.loadFile() : Loads the csv file in DataEntry obj format
  6. Function call objLauncher.mergeDays() : Merges weekday_is_* into weekday feature. Replaces 1/0 with actual Day names for plot interpretability
  7. Function call objLauncher.mergeDataChannel() : Merges data_channel_is_* into data_channel feature. Replaces 1/0 with actual Day names for plot interpretability
  8. Function call objLauncher.splitLabels() : Transforms the numerical label column (shares) to Yes/No using the provided threshold for popularity.
  9. Function call objLauncher.writeCSV() : Writes the new database after transformations into a CSV file.

How to run:

  1. Ensure that the databse is in resources/
  2. Comment/Uncomment any of the functin calls in Launcher.java, depending on the need for transformation
  3. Execute Launcher.java
  4. Transformed database will be generated in resources/ with the current milli-seconds appended to the name

onp-data-transform's People

Contributors

asadana avatar

Watchers

 avatar  avatar  avatar

onp-data-transform's Issues

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.