GithubHelp home page GithubHelp logo

finacial-pharse-bank's Introduction

finacial-pharse-bank

Set up

conda create -n env2 python=3.11
conda activate env2
conda install pytorch==2.1.2 cpuonly -c pytorch


git clone https://github.com/giriprasad51/finacial-pharse-bank.git

cd finacial-pharse-bank
pip install ./requirements.txt

Start application

python app.py

Fine Turing

https://www.kaggle.com/code/giriprasad512/financial-1

financial-training.ipynb

Loss function

Predict - GroundTruth

positive - negative    less     100
negative - positive    less     100
neutral - negative     less      100 client who holds stock will 

neutral - positive     0         40     no loss just for company growth
positive - neutral     0         10	client who buys wont loss 
negative - neutral     0         10	client just sell the stock

positive - positive  more       -10
negative - negative  more       -10
neutral - neutral    more       -10

acc1 = (positive-positive + negative-negative + neutral-neutral)/(positive-positive + negative-negative + neutral-neutral + positive-negative + negative-positive + neutral-negative + neutral-positive)

precision = TP/(TP+FP)
Recall = TP/(TP+FN)
f1 score = 2*PR/(P+R)

Request

POST /thing/

curl -X POST http://127.0.0.1:5000/api/data \
 -H "Content-Type: application/json" \
 -d '{
       "article": "According to the company 's updated strategy for the years 2009-2012, Basware targets a long-term net sales growth in the range of 20% -40% with an operating profit margin of 10% -20% of net sales"
     }'

Response

127.0.0.1 - - [02/Aug/2024 17:28:09] "POST /api/data HTTP/1.1" 201 -
['negative']

{
    "message": "Data received successfully",
    "received_data": [
        "negative"
    ]
}

Screenshots

Image 1 Image 2

finacial-pharse-bank's People

Contributors

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