Giter Club home page Giter Club logo

model_retrieval's Introduction

Spider logo

Model retrieval

GitHub GitHub tag GitHub code size in bytes

Some ML Model retrieval

VSM

VSM = Vector Space Model

This a hand write VSM retrieval

β”œβ”€β”€ utils
β”‚Β Β  └── utils.py         // public function
└── vsm
    β”œβ”€β”€ pre.sh           // data preprocessing shell
    └── vsm.py           // vsm py

VSM process:

  1. word alignment
  2. TF - IDF (smooth, similarity)
  3. one by one calaulate
  • VSM.vsmCalaulate()
    • Consider about bias by smooth
    • Choose one tuple(artile1, artile2) have specific (tf-idf1, tf-idf2)
    • In this way, we have low performance, even we have two class Threadings
  • VSM.vsmTest()
    • Ignore bias by smooth
    • Calculate tf-idf in the pre processing which decided by artile instead of tuple(artile1, artile2)
    • In this way, we have fantastic performance
    • We calculate dataset of 3100βœ–οΈ3100 in 215s

SMN

SMN = Sequential Matching Network

some change from MarkWuNLP/MultiTurnResponseSelection

.
β”œβ”€β”€ NN
β”‚Β Β  β”œβ”€β”€ CNN.py              // CNN function
β”‚Β Β  β”œβ”€β”€ Classifier.py       // classifier function
β”‚Β Β  β”œβ”€β”€ Optimization.py     // NN optimization function
β”‚Β Β  β”œβ”€β”€ RNN.py              // RNN function
β”‚Β Β  └── logistic_sgd.py     // sgd function
β”œβ”€β”€ SMN
β”‚Β Β  β”œβ”€β”€ PreProcess.py       // pre deal function
β”‚Β Β  β”œβ”€β”€ SMN_Last.py         // model function
β”‚Β Β  β”œβ”€β”€ SimAsImage.py       // cnn pool & conv
β”‚Β Β  └── sampleConduct.py    // got negative and true sample
└── utils
 Β Β  β”œβ”€β”€ constant.py         // constant parameter
 Β Β  └── utils.py            // public function

SMN process:

  1. word embemdding
  2. GRU
  3. CNN
  4. GRU
  5. score
  • SMN.PreProcess.ParseMultiTurn(input_file)
    • prepare deal sample to matrix
  • SMN.PreProcess..ParseMultiTurnTest(input_file)
    • prepare deal test sample to matrix
  • SMN.sampleConduct.preWord2vec(input_file, out_file)
    • embedding sample
  • SMN.sampleConduct.SampleConduct()
    • got negative & true sample
  • SMN.SMN_Last.run_model()
    • run SMN model

Bert

LightGBM

DMN

bert_embedding

word2vec

wordNet

flask

model_retrieval's People

Contributors

iofu728 avatar

Watchers

James Cloos 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.