Git Product home page Git Product logo

stablelda-eric's Introduction

Note

This code is done by @yya518. I cloned his code and edited just for academic research purposes. For more information and orginal code, refer to: https://github.com/yya518/StableLDA/tree/main

Stable LDA -- Extracting Actionable Insights from Text Data

Introduction

Stable LDA is a stable topic modeling approach that generates stable model estimations. Variables generated from Stable LDA can lead to more consistent estimations in regression analyses.

In this repo, we demonstrate the use of Stable LDA in topic modeling (data exploration) and regressions (variable generation).

  1. stability_experiment shows the use of Stable LDA for topic modeling and stability validation.
  2. stackexchange_empirical shows the use of Stable LDA on the stackexchange dataset. LDA is benchmarked as well.
  3. stackexchange_topic_modeling shows the use of Stable LDA for topic modeling.

Environment

  1. Python2.7
  2. gensim==3.8.3
  3. scipy==1.2.3
  4. scikit-learn==0.19.1
  5. gcc==9.4.0 (Ubuntu) or mingw32-make (GNU Make 4.3) (Windows)

Note: the code has been tested on both Ubuntu and Windows system, but it is only tested in Python2.7, not in Python3+ yet.

Use

For Windows user,

  1. Comment line 14 in the Makefile, and Uncomment line 13 in the Makefile
  2. Comment line 313 in the stablelda.py, and Uncomment line 312 in the stablelda.py
  3. Run command mingw32-make

For Linux user,

  1. Comment line 13 in the Makefile, and Uncomment line 14 in the Makefile
  2. Comment line 312 in the stablelda.py, and Uncomment line 313 in the stablelda.py
  3. Run command make

stablelda-eric's People

Contributors

ericwangpq 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.