Giter VIP home page Giter VIP logo

bert-analysis's Introduction

Bert-Analysis

Simple CLI for analyzing Google's Bert predicted data.

Motivation

bert-text is designed to allow simple statistics measurements of binary classifier's output preditions. By deafult Bert created the predicted classes columns by their order of appearence in the train.tsv file, bert-text takes care of remembering, how the values were presented and uses this information to evaluate the predicted data.

Requirements

bert-analysis uses npyscreen to create command line interface

pip install npyscreen

Files input

Bert takes 3 files as input:

1. Traning file(train.tsv) This is the file used while traning Bert, the file is needed to analyze and remember the classes order of appearence.

Example

Index class a text
1 0 'a' 'opinion 1'
2 0 'a' 'opinion 2'
3 1 'a' 'opinion 3'
4 0 'a' 'opinion 4'

2. Testing file This is the file where you keep the classes for data used for testing bert.This file is needed because bert doesn't take the actual class for it's traning data, so the file is there for comparison.

Example

class text
0 'opinion 1'
0 'opinion 2'
1 'opinion 3'
0 'opinion 4'

2. Predicted file(test_results.tsv) This is the file returned by bert after prediction. This file is needed to test the accuracy of bert output.

Example

class 1 class 2
0.00029595374 0.99970406
0.9983991 0.0016009521
0.00059712224 0.9994029
0.00059151126 0.9994085

Returned data:

  • True Positives
  • False Positives
  • False Negatives
  • False Positives
  • Accuracu
  • Specificity
  • Sensitivity
  • Precision
  • F-score
  • Matthews correlation coefficient
  • Youden Index

Limitations:

bert-analysis is currently limited to analyzing binary classifiers, this might change in future.

Future of the project

  • Confussion martix as image
  • ROC curve
  • AUC
  • Multinomial classifiers
  • Returning hard sentences

bert-analysis's People

Watchers

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