mirror of
https://github.com/velocitatem/PHANTOM.git
synced 2026-05-31 16:43:36 +00:00
16 lines
493 B
Python
16 lines
493 B
Python
from sklearn.pipeline import Pipeline
|
|
from sklearn.preprocessing import StandardScaler
|
|
from extract import DataExtractor
|
|
from mapping import SessionTransitionProbMatrixTransformer, render_graph
|
|
|
|
|
|
if __name__ == "__main__":
|
|
steps = [
|
|
('data_extraction', DataExtractor()),
|
|
#('transition_matrix', SessionTransitionProbMatrixTransformer(threshold=0.05)),
|
|
]
|
|
pipeline = Pipeline(steps)
|
|
result = pipeline.fit_transform(None)
|
|
print(result)
|
|
print(result.info())
|