Coder Social home page Coder Social logo

covid19_media's People

Contributors

brucewen120 avatar imanechafi avatar nair-p avatar yueli-compbio avatar yueliyl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

covid19_media's Issues

Create virtual environment for dependencies

Virtual environments are a great way to have all dependencies from a python code using only one command, pip freeze. I'll also add in the readme how to create your own local virtual environment before cloning this repo.

[IndexError] : Index out of bound error on adding large datasets to DMETM

Expected Behavior

The DMETM code by running python main.py --mode train --dataset "GPHIN" --datapath data/GPHIN --num_topics 10 --train_source_embeddings 1 --epochs 10 --min_df 10 should start running and giving epoch, since the data in min_df_10 has timestamps now.

Current Behavior

error_gphin

Index out of bound error is appearing under Getting training data ... for file data.py line 104.

Possible Solution

Add piece of code under a try catch exception that continues the for loop in case this index out of bound error appears.

Steps to Reproduce

  1. Add either the official csv or the online parsed csv from the data folder under DMETM/data/GPHIN and rename the csv file to gphin.csv
  2. Navigate to the folder DMETM/scripts and run python data_gphin.py. You should a new folder titled min_df_10 appearing under DMETM/data/GPHIN
  3. Go back one directory to DMETM and run python main.py --mode train --dataset "GPHIN" --datapath data/GPHIN --num_topics 10 --train_source_embeddings 1 --epochs 10 --min_df 10

Update ReadME

Update readme with information on how to run the updated main.py script

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.