SMQTK(SocialMultimediaQueryToolKit)是一个Pytho工具包,用于基于多媒体的机器学习中可插入式的算法和数据结构。
SMQTK的API提供:
可伸缩的数据结构接口和实现,侧重于机器学习相关内容.
机器学习的算法接口和实现
带算法和数据结构支持的高级应用和工具
通过这些特性,用户和开发者可以使用不同的机器学习算法和技术来使用不同类型的数据。适用场景包括基于语料库的媒体搜索来查找相似内容;或者提供基于内容的相关反馈接口。
示例代码:
import abcfrom smqtk.represetatio import SmqtkRepresetatiofrom smqtk.utils.plugi import Pluggable, get_plugisclass FooBar (SmqtkRepresetatio, Pluggable): """ Some documetatio o what this does. """ # Iterface methods ad/or abstract fuctioality here. # -> See the abc module o how to decorate abstract methods. @abc.abstractmethod def do_somethig(self): """ Does Somethig """def get_foo_bar_impls(reload_modules=False): import os.path as osp from smqtk.utils.plugi import get_plugis this_dir = osp.abspath(osp.dirame(__file__)) ev_var = 'FOO_BAR_PATH' helper_var = 'FOO_BAR_CLASS' retur get_plugis(__ame__, this_dir, ev_var, helper_var, FooBar, reload_modules)
评论