84e6e1abbf
- Refactoring of partitioners for OO design
32 lines
862 B
Python
32 lines
862 B
Python
#!/usr/bin/python
|
|
# -*- coding: utf8 -*-
|
|
|
|
import os
|
|
import numpy as np
|
|
import pandas as pd
|
|
import matplotlib as plt
|
|
import matplotlib.pyplot as plt
|
|
from mpl_toolkits.mplot3d import Axes3D
|
|
|
|
import pandas as pd
|
|
from pyFTS.partitioners import Grid, Entropy, FCM
|
|
from pyFTS.common import FLR,FuzzySet,Membership,Transformations
|
|
from pyFTS import fts,hofts,ifts,pwfts,tree, chen
|
|
from pyFTS.benchmarks import benchmarks as bchmk
|
|
from pyFTS.benchmarks import Measures
|
|
from numpy import random
|
|
|
|
#print(FCM.FCMPartitionerTrimf.__module__)
|
|
|
|
gauss = random.normal(0,1.0,2000)
|
|
#gauss_teste = random.normal(0,1.0,400)
|
|
|
|
|
|
os.chdir("/home/petronio/dados/Dropbox/Doutorado/Disciplinas/AdvancedFuzzyTimeSeriesModels/")
|
|
|
|
#from pyFTS.common import Util
|
|
|
|
|
|
bchmk.sliding_window(gauss,500,train=0.7,partitioners=[Grid.GridPartitioner, FCM.FCMPartitioner, Entropy.EntropyPartitioner])
|
|
|