当前位置: 首页>>代码示例>>Python>>正文


Python Experiment.__init__方法代码示例

本文整理汇总了Python中experiment.Experiment.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python Experiment.__init__方法的具体用法?Python Experiment.__init__怎么用?Python Experiment.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在experiment.Experiment的用法示例。


在下文中一共展示了Experiment.__init__方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: from experiment import Experiment [as 别名]
# 或者: from experiment.Experiment import __init__ [as 别名]
 def __init__(self):
     Experiment.__init__(self)
     persistance.Dommable.__init__(self)
     
     self.amplifiers = {'None':'bridge', 'Prana':'Prana', 'Milmega 1':'Milmega', 'Milmega 2':'Milmega'}
     self.amplifier = EnumerateProperty('None',['Automatic'] + self.amplifiers.keys())
     self.amplifier.changedTo.connect(self.setAmplifier)
开发者ID:houssem21,项目名称:emctestbench,代码行数:9,代码来源:transmittedpower.py

示例2: __init__

# 需要导入模块: from experiment import Experiment [as 别名]
# 或者: from experiment.Experiment import __init__ [as 别名]
    def __init__(self):
        Experiment.__init__(self)
        self.passCriterion = ExperimentSlot(parent=self,defaultValue='VoltageCriterion')
        self.transmittedPower = ExperimentSlot(parent=self,defaultValue='TransmittedPower')
        self.powerMinimum = Property(Power(-30.,'dBm'),changedSignal=self.settingsChanged)

        self.powerMaximum = Property(Power(+15.,'dBm'),changedSignal=self.settingsChanged)
        self.frequencies = SweepRange(Frequency(150e3),Frequency(1500e6),21,changedSignal=self.settingsChanged) 
开发者ID:houssem21,项目名称:emctestbench,代码行数:10,代码来源:dpi.py

示例3: __init__

# 需要导入模块: from experiment import Experiment [as 别名]
# 或者: from experiment.Experiment import __init__ [as 别名]
 def __init__(self):
     Experiment.__init__(self)
     
     # Load cluster information
     self.loadClusters()
     
     self.makeSeedUsersData()
     self.makeFriendListData()
     self.makeLikeVectorData()
     self.makeTweetListLikedByEgoNetworkMembers()
     self.makeLikeCountData()
     self.makeMentionCountData()
     self.makeMutualFriendsCountData()
     self.makeClusterData()
开发者ID:ChangUk,项目名称:TempRepo,代码行数:16,代码来源:SecondaryProductMaker.py

示例4: __init__

# 需要导入模块: from experiment import Experiment [as 别名]
# 或者: from experiment.Experiment import __init__ [as 别名]
    def __init__(self):
        Experiment.__init__(self)
        self.transmittedPower = ExperimentSlot(parent=self,defaultValue='TransmittedPower')
        self.measurement = ExperimentSlot(parent=self,defaultValue='ReceivedPower') #,defaultValue='VoltageCriterion')
        
        self.generatorPower = Property(Power(+10,'dBm'),changedSignal=self.settingsChanged)
        self.generatorFrequency = ScalarProperty(Frequency(1,'GHz'),changedSignal=self.settingsChanged,minimum=Frequency(1,'Hz'))

        self.startPosition = ScalarProperty(Position(22,'mm'),changedSignal=self.settingsChanged)
        self.stopPosition = ScalarProperty(Position(-24,'mm'),changedSignal=self.settingsChanged)
        self.xPosition = ScalarProperty(Position(122,'mm'),changedSignal=self.settingsChanged)
        self.zPosition = ScalarProperty(Position(84,'mm'),changedSignal=self.settingsChanged)
        
        self.numberOfSteps = ScalarProperty(Integer(11),minimum=Integer(1),maximum=Integer(10001),changedSignal=self.settingsChanged)
开发者ID:eseo-emc,项目名称:emctestbench,代码行数:16,代码来源:nearfieldscan.py

示例5: __init__

# 需要导入模块: from experiment import Experiment [as 别名]
# 或者: from experiment.Experiment import __init__ [as 别名]
 def __init__(self, outputDirPath):
     Experiment.__init__(self)
     
     # Set output directory path
     self.outputDirPath = outputDirPath
     if not os.path.exists(self.outputDirPath):
         os.makedirs(self.outputDirPath)
     
     # For multi threading synchronization
     self.threadLock = threading.Lock()
     self.threadList = []
     
     # Load cluster information
     self.loadClusters()
     
     # CF result
     self.result_baseline_simple_userbased_cf = {}
开发者ID:ChangUk,项目名称:TempRepo,代码行数:19,代码来源:_exp3.py

示例6: __init__

# 需要导入模块: from experiment import Experiment [as 别名]
# 或者: from experiment.Experiment import __init__ [as 别名]
 def __init__(self, nFolds, outputDirPath):
     Experiment.__init__(self)
     
     # Number of folds
     self.nFolds = nFolds
     
     # Set output directory path
     self.outputDirPath = outputDirPath
     if not os.path.exists(self.outputDirPath):
         os.makedirs(self.outputDirPath)
     
     # For multi threading synchronization
     self.threadLock = threading.Lock()
     self.threadList = []
     
     # Load cluster information
     self.loadClusters()
开发者ID:ChangUk,项目名称:TempRepo,代码行数:19,代码来源:exp4.py

示例7: __init__

# 需要导入模块: from experiment import Experiment [as 别名]
# 或者: from experiment.Experiment import __init__ [as 别名]
    def __init__(self, line_flag=False):

        Experiment.__init__(self, line_flag)

        self.joint = BridgedJoint(
            self.english_corpus_dir,
            self.img_features_npy,
            self.japanese_corpus_dir,
            self.img_original_dir,
            self.img_correspondence_path,
            self.japanese_original_corpus_dir,
            BridgedExperiment.PCA_COMPRESS_WORD_DIM,
            BridgedExperiment.PCA_COMPRESS_IMG_DIM,
            line_flag
        )
        self.logger.info("<Initilalizing BridgedExperiment>")

        self.distribution_list = []
开发者ID:rupy,项目名称:CrossLingualSentenceRetrieval,代码行数:20,代码来源:bridged_experiment.py

示例8: __init__

# 需要导入模块: from experiment import Experiment [as 别名]
# 或者: from experiment.Experiment import __init__ [as 别名]
 def __init__(self):
     Experiment.__init__(self)
     
     # Set figure save path
     self.save_path = "/home/changuk/Pictures/" + self.tool.getCurrentTime() + "/"
     if not os.path.exists(self.save_path):
         os.makedirs(self.save_path)
     
     # Get user list who has mention history
     print("Getting user list who has interaction history...")
     FILE_USERLIST_HAVING_INTERACTION_HISTORY = StaticVariable.ROOTPATH + "userlist_having_interaction_history.pickle"
     if os.path.exists(FILE_USERLIST_HAVING_INTERACTION_HISTORY) == True:
         file = open(FILE_USERLIST_HAVING_INTERACTION_HISTORY, "rb")
         self.userlist_having_interaction_history = pickle.load(file)
         file.close()
     else:
         self.userlist_having_interaction_history = self.dbAdapter.getUserListHavingMentionHistory()
         file = open(FILE_USERLIST_HAVING_INTERACTION_HISTORY, "wb")
         pickle.dump(self.userlist_having_interaction_history, file)
         file.close()
     
     # Get user list who has like history
     print("Getting user list who has like history...")
     FILE_USERLIST_HAVING_LIKE_HISTORY = StaticVariable.ROOTPATH + "userlist_having_like_history.pickle"
     if os.path.exists(FILE_USERLIST_HAVING_LIKE_HISTORY) == True:
         file = open(FILE_USERLIST_HAVING_LIKE_HISTORY, "rb")
         self.userlist_having_like_history = pickle.load(file)
         file.close()
     else:
         self.userlist_having_like_history = self.dbAdapter.getUserListHavingLikeHistory()
         file = open(FILE_USERLIST_HAVING_LIKE_HISTORY, "wb")
         pickle.dump(self.userlist_having_like_history, file)
         file.close()
     
     # Load clusters information
     self.loadClusters()
     
     # For plotting correlation coefficient
     self.boxplotData = {}
     
     self.boxPlotingOrder = []
开发者ID:ChangUk,项目名称:TempRepo,代码行数:43,代码来源:exp2.py

示例9: __init__

# 需要导入模块: from experiment import Experiment [as 别名]
# 或者: from experiment.Experiment import __init__ [as 别名]
 def __init__(self):
     Experiment.__init__(self)
     self.outputVoltage = ScalarProperty(
         quantities.Voltage(3.3, "V"),
         changedSignal=self.settingsChanged,
         minimum=quantities.Voltage(0.0, "V"),
         maximum=quantities.Voltage(20.0, "V"),
     )
     self.outputCurrent = ScalarProperty(
         quantities.Current(100, "mA"),
         changedSignal=self.settingsChanged,
         minimum=quantities.Current(0.0, "A"),
         maximum=quantities.Current(10.0, "A"),
     )
     self.outputChannel = EnumerateProperty("1", ["1", "2", "3", "4"], changedSignal=self.settingsChanged)
     self.offOnTime = ScalarProperty(
         quantities.Time(0.5, "s"), minimum=quantities.Time(0.0, "s"), maximum=quantities.Time(10.0, "s")
     )
     self.startupTime = ScalarProperty(
         quantities.Time(0.5, "s"), minimum=quantities.Time(0.0, "s"), maximum=quantities.Time(10.0, "s")
     )
     self.outputOn = BooleanProperty(False, changedSignal=self.onOffChanged)
开发者ID:eseo-emc,项目名称:emctestbench,代码行数:24,代码来源:supplycontroller.py

示例10: __init__

# 需要导入模块: from experiment import Experiment [as 别名]
# 或者: from experiment.Experiment import __init__ [as 别名]
    def __init__(self):
        Experiment.__init__(self)
        persistance.Dommable.__init__(self)

        self._physicalAmplifier = None
        
        self.amplifierSwitchPositions = {
            'None (773D)':                  'coupler', 
            'Amplifier 1 (Prana)':          'Amplifier 1', 
            'Amplifier 2 (Milmega band 1)': 'Amplifier 2', 
            'Amplifier 2 (Milmega band 2)': 'Amplifier 2'}
        self.amplifierDevices = {
            'None (773D)':                  None, 
            'Amplifier 1 (Prana)':          knownDevices['Prana'], 
            'Amplifier 2 (Milmega band 1)': knownDevices['Milmega'], 
            'Amplifier 2 (Milmega band 2)': knownDevices['Milmega']}
            
        self.amplifier = EnumerateProperty('Automatic (coupler)',['Automatic (coupler)','Automatic (amplifier)'] + self.amplifierSwitchPositions.keys())
        self.amplifier.changed.connect(self.setAmplifier)

        self.amplifierCorrections = {}        
        for amplifier in self.amplifierSwitchPositions.keys():
            self.amplifierCorrections.update({amplifier:BestBenchCorrections(amplifier)})
开发者ID:eseo-emc,项目名称:emctestbench,代码行数:25,代码来源:transmittedpower.py

示例11: __init__

# 需要导入模块: from experiment import Experiment [as 别名]
# 或者: from experiment.Experiment import __init__ [as 别名]
 def __init__(self):
     Experiment.__init__(self)
     self.undisturbedOutputVoltage = ScalarProperty(quantities.Voltage(0.,'V'),changedSignal=self.settingsChanged,minimum=quantities.Voltage(-500.,'V'),maximum=quantities.Voltage(500.,'V'))
     self.voltageMargin = ScalarProperty(quantities.Voltage(200.,'mV'),changedSignal=self.settingsChanged,minimum=quantities.Voltage(0.,'V'),maximum=quantities.Voltage(500.,'V'))
开发者ID:eseo-emc,项目名称:emctestbench,代码行数:6,代码来源:voltagecriterion.py

示例12: __init__

# 需要导入模块: from experiment import Experiment [as 别名]
# 或者: from experiment.Experiment import __init__ [as 别名]
    def __init__(self):
        Experiment.__init__(self)
        self.generatorPower = Property(Power(-10.,'dBm'),changedSignal=self.settingsChanged)
        self.frequencies = SweepRange(Frequency(100e3),Frequency(20e9),21,changedSignal=self.settingsChanged) 

        self.transmittedPower = ExperimentSlot(parent=self) #,defaultValue='TransmittedPower')
开发者ID:eseo-emc,项目名称:emctestbench,代码行数:8,代码来源:frequencysweep.py

示例13: __init__

# 需要导入模块: from experiment import Experiment [as 别名]
# 或者: from experiment.Experiment import __init__ [as 别名]
 def __init__(self, image_iter, feature_size):
   Experiment.__init__(image_iter)
   self.feature_size = feature_size
开发者ID:kkansky,项目名称:and_or_images,代码行数:5,代码来源:grid_particle_learning.py

示例14: __init__

# 需要导入模块: from experiment import Experiment [as 别名]
# 或者: from experiment.Experiment import __init__ [as 别名]
    def __init__(self):
        Experiment.__init__(self)
        self.stimulusRange = SweepRange(Frequency(100e3),Frequency(20e9),21,changedSignal=self.settingsChanged) 

        self.stimulus = ExperimentSlot(parent=self)
        self.measurement = ExperimentSlot(parent=self) #,defaultValue='TransmittedPower')
开发者ID:eseo-emc,项目名称:emctestbench,代码行数:8,代码来源:sweep.py

示例15: __init__

# 需要导入模块: from experiment import Experiment [as 别名]
# 或者: from experiment.Experiment import __init__ [as 别名]
 def __init__(self):
     Experiment.__init__(self)
     self.train = None
开发者ID:rain1024,项目名称:kaggle-drawbridge,代码行数:5,代码来源:kaggle_experiment.py


注:本文中的experiment.Experiment.__init__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。