Spaces:
Running
Running
File size: 908 Bytes
62dcfec |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
# -*- coding: utf-8 -*-
"""
Created on Fri Mar 10 23:13:18 2023
@author:
"""
from ModelTEC import *
from MScenoariotree import *
from MCheakscenario import Cheakscenario
class ModelScenoariotree:
def __init__(self,obTECSoft=None,obTEC=None,obG=None,Base=None,isForm=False):
self.cks=Cheakscenario(ob=obTECSoft)
# obTEC.nlp=Base.nlp
# obTECSoft.nlp=Base.nlp
self.Base=Base
self.obGroup=obG
self.Base.setModels(ObTEC=obTEC,ObTECSodft=obTECSoft,obchk=self.cks,isForm=isForm)
def search(self,inputstate=[''],rateerror=0,PrintFuri=True,type_search='Max',ThresholdTechnique=0.0,istrans=False):
Cheakscenario.PrintFuri=PrintFuri
Cheakscenario.rateerror=rateerror
self.Base.Predict(Description=inputstate,WF=type_search,ThresholdTechnique=ThresholdTechnique,istrans=istrans)
print ('all scenario : end')
|