Skip to main content

mediapipe_decision 0.1.2 copy "mediapipe_decision: ^0.1.2" to clipboard
mediapipe_decision: ^0.1.2 copied to clipboard

Google's MediaPipe Decision Maker for Flutter: yes-or-no, choice and score questions about a text, answered with calibrated probabilities.

0.1.2 #

Release 0.1.2.

0.1.1 #

Adds Google's NOTICE at the package root.

0.1.0 #

The first release.

  • Decision Maker on Android, iOS, macOS, Linux, Windows and the web, through Google's official MediaPipe runtimes: its per-family 1.2.0 decision C library natively and @mediapipe/tasks-decision in browsers.
  • Decision Maker needs 64-bit Android: 32-bit (armeabi-v7a) cannot hold its models, and queryDecisionMakerCapabilities says so.
  • evaluateBoolean, evaluateChoice and evaluateScore with Google's BooleanQuestion, ChoiceQuestion and ScoreQuestion, plus their batch forms, with the same results on every platform.
  • DecisionModels pins Google's Laya, GLiNER2.5-Decide and EmbeddingGemma 2 models; queryDecisionMakerCapabilities(model) says where a model runs, since Google's browser runtime embeds every text as zeros with either EmbeddingGemma 2 model in WebKit (UP-054) and aborts with GLiNER2.5-Decide in every browser (UP-055).
  • maxNumTokens defaults to 0, the model's own token budget, rather than the 4096 of Google's Python API: Google's engine reserves memory for the whole budget, 6.7 GB with EmbeddingGemma 2 at 4096, beyond what iOS gives an iPhone app (UP-060).
  • In browsers Google's runtime ignores normalizePrior and scoringMode (UP-056), as the questions' documentation says.
0
likes
160
points
--
downloads

Documentation

API reference

Publisher

verified publishergoogle.dev

Google's MediaPipe Decision Maker for Flutter: yes-or-no, choice and score questions about a text, answered with calibrated probabilities.

Repository (GitHub)
View/report issues
Contributing

Topics

#mediapipe #machine-learning #nlp #classification

License

BSD-3-Clause (license)

Dependencies

code_assets, ffi, flutter, flutter_web_plugins, hooks, mediapipe_core

More

Packages that depend on mediapipe_decision

Packages that implement mediapipe_decision