twd means Model of three-way decision.
Firstly the space structure of set pair information granule can be divided into positive granule, negative granule, different granule, which were similar and slightly different with three regions of generalized three-way decision. The three kinds of information granules in set pair information granule space were built based on certain positive degree, negative degree and different degree. Secondly, according to the given threshold, set pair information granule is divided into mutually disjointing positive region, negative region and different region.
numpy
More details for requirements file.
>>> git clone https://github.com/Zeroto521/twd.git
>>> cd twd
>>> python setup.py install
>>> from twd import TWD
>>> model = TWD(Lambda=.6, Gamma=.15, PP=0, BP=25, NP=5, PN=10, BN=100, NN=0)
>>> model.predict(x_train, y_train, x_test)
More details for example.py folder and twd.py source code.
MIT License. @Zeroto521