Skip to content

Getting Started

Dependencies

  • Python (>=3.9)
  • scikit-learn (>=1.4.0)

Installation

It can be installed as follows using pip:

pip install -U mt-system

Usage

It learns and predicts like scikit-learn models.

from mts import MT

mt = MT(method="mt")

mt.fit(train_X)

label = mt.predict(test_X)

md = mt.mahalanobis(test_X)

or

from mts import MT

mt = MT(method="mt")

label = mt.fit(train_X).predict(test_X)

MT, MTA and SVP methods use the MT model.

from mts import MT

mt = MT(method="mt")

mta = MT(method="mta")

svp = MT(method="svp")

T(1), T(2), Ta and Tb methods use the T model.

from mts import T

t = T(tb=False)  # T(1), T(2), and Ta methods are specified when fitting the model.
tb = T(tb=True)

t.fit(train_X, us_idx=us_idx)  # T(1) and T(2) methods.
t.fit(train_X, us_idx=None)  # Ta method.

RT method use the RT model.

from mts import RT

rt = RT()