Skip to main content

Short activist predictor

Note

This Python package provides a machine learning model for predicting the likelihood of success for short activist reports targeting public companies.

Installation

You can install the package using pip:

pip install short_activist_predictor

Usage

The package provides a Predictor module with function predict_pdf() that takes in a path to the PDF file of the short report and the target company name. It loads and analyzes the report text using NLP. The Predictor then outputs probability scores between 0-1 predicting the chance of a successful outcome from the report release over 3 time periods - within 1 days, 1 week, and 1 month.

Here's an example of how to use the Predictor.predict_pdf() function:

from short_activist_predictor.predictor import Predictor

# Create a predictor instance by hf token indentification
predictor_ = Predictor(Predictor.Login_Token())

# Upload the report in pdf format
# This following function will ask you to upload a pdf to
while(True):
  predictor_.predict_pdf()

To request access, please email danglchis.manage@gmail.com with your name, institution affiliation, and details on your proposed use case. We will evaluate requests and provide access to those with legitimate needs aligned with the intended uses of this model

Requirements

To use this package, you need to have Python 3.10 or higher installed on your system. You also need to have the following packages installed:

  • Bertopic
  • Transformers
  • Huggingface_hub
  • NLTK

License

This package is licensed under the GNU General Public License v3.0. See the LICENSE file for more information.

Contact

If you have any questions or suggestions, feel free to contact Daglox Kankwanda at @danglchris.

Metadata

Release files for short-activist-predictor 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for short-activist-predictor 0.1.0
File Size Uploaded
short_activist_predictor-0.1.0.tar.gz 37.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for short-activist-predictor 0.1.0
File Interpreter ABI Platform
short_activist_predictor-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 61.3 kB

Release files / short_activist_predictor-0.1.0.tar.gz

Download URL short_activist_predictor-0.1.0.tar.gz
Size 37.8 kB
Tags Source
SHA-256 checksum
How to use checksums
1bb4f26e736ade77c840ee9e781e3f9fe51835e621e1301a6aef45c80eea7cef
BLAKE2b-256 checksum
How to use checksums
b20dd985cf7f7cbcf6f409a6a1290ab2c72463b2abd976b72ee54c19686343bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release files / short_activist_predictor-0.1.0-py3-none-any.whl

Download URL short_activist_predictor-0.1.0-py3-none-any.whl
Size 23.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ea4e11e6a46b030a5a0ba88c9a3db5945429456314bd18ebfe27c9a1d98db032
BLAKE2b-256 checksum
How to use checksums
b15bd20dbe5e510d5c431ea75f65d614cfb0b1815f2f6c69bc8e6a0dc373960c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page