Giter Club home page Giter Club logo

mergefv's Introduction

MergeFV

MIT License

重みファイル(Bonanzaのfv.binのような2バイト符号付整数値が連続で記録されたバイナリファイル)の重み付き加算を行うコマンドラインツールです。 エラー時も出力ファイルが半端な状態で残るなど、いろいろ適当実装なので悪しからず。

使い方

MergeFV [options] InFile1 [InFile2 ...] OutFile
  • InFile 入力元のファイルパス

  • OutFile 出力先のファイルパス

  • -w 重み 各入力の重みを実数のカンマ区切りで指定する。省略時は1.0/入力ファイル数になる。(通常の算術平均)

MergeFV FV1.bin FV2.bin result.bin

FV1.binとFV2.binの各要素の平均をresult.binに出力。

MergeFV -w 0.3,0.7 FV1.bin FV2.bin result.bin

FV1.binの各要素の値に0.3を掛けたものと FV2.binの各要素の値に0.7を掛けたものの和(端数は四捨五入)を、 result.binに出力。

CompareFV

MergeFVの類似品。2つの同一形式の重みファイルの比較を行い、以下の情報を出力する。

  • 要素数
  • 値の一致しなかった要素数
  • 値の一致しなかった要素について、差の絶対値の最大
  • 値の一致しなかった要素について、差の絶対値の平均
  • 値の一致しなかった要素について、差の二乗平均平方根

使い方:

CompareFV InFile1 InFile2
  • InFile1 比較元のファイルパス
  • InFile2 比較先のファイルパス

mergefv's People

Contributors

ak110 avatar

Watchers

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