Git Product home page Git Product logo

dsc180a-q1-project's Introduction

DSC180A Section A12 Quarter 1 Project

This is the repository for our DSC180A section's Quarter 1 Project, which consists of 2 machine learning models that can be used to predict the relevance and sentiment toward China of the tweets posted by the members of the U.S. Congress, given the tweet's text content.

Main Content

  • config: folder to store tuned parameters for the models
    • param-A.json - tuned parameter for task 1 model
    • param-B.json - tuned parameter for task 2 model
  • data: folder to store data, including test data and other data. It is also used to store the results data for the author
    • test: folder to store the test data
    • raw: empty, folder to store the raw data
  • notebook: folder to store the pre-development notebooks
    • DSC180A_sketch.ipynb - all the pre-development code for the tasks
  • src: folder to store the files of obtaining the dataset, building the features, and the code for the 2 models
    • make_dataset.py - script to preprocess the raw data
    • build_features.py - script to build features for different tasks
    • relevance_bucket_classifier.py - code for the task 1 model
    • sentiment_score_regressor.py- code for the task 2 model

Data Source

The data used in this project was provided by the staffs from the China Data Lab at UC San Diego. Click here for data. If running the models with the raw data, please place the SentimentLabeled_10112022.csv in the folder data/raw.

Important Files

  • Dockerfile: contains the information for building the docker image
  • run.py: the script to run the models. To run the models on test data, use the following command:
    • python3 run.py test

dsc180a-q1-project's People

Contributors

yunyihuang avatar

Watchers

 avatar

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.