本文整理汇总了Python中tracker.Tracker.run方法的典型用法代码示例。如果您正苦于以下问题:Python Tracker.run方法的具体用法?Python Tracker.run怎么用?Python Tracker.run使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类tracker.Tracker
的用法示例。
在下文中一共展示了Tracker.run方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: beer_fitness
# 需要导入模块: from tracker import Tracker [as 别名]
# 或者: from tracker.Tracker import run [as 别名]
def beer_fitness(population):
for p in population:
#perform simulation
points = []
for i in range(10):
# print p.ann
t = Tracker(p.ann)
points.append(t.run())
p.fitness = sum(points)*1.0/len(points)*1.0
示例2: Tracker
# 需要导入模块: from tracker import Tracker [as 别名]
# 或者: from tracker.Tracker import run [as 别名]
import sys
import os.path
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
import socket
from tracker import Tracker
import pysocket
p = pysocket.Pysocket()
t = Tracker((p.get_lan_ip(), 50000))
t.run()
示例3: __repr__
# 需要导入模块: from tracker import Tracker [as 别名]
# 或者: from tracker.Tracker import run [as 别名]
for w in self.arc_weights:
s+="w"
s+=str(w)
for b in self.biases:
s+="b"
s+=str(b)
for g in self.gains:
s+="g"
s+=str(g)
for t in self.time_constants:
s+="t"
s+=str(t)
s+=")"
return s
def __repr__(self):
return self.__str__()
#Develop a single parameter, from the binary list representing it to a float.
def dev_parameter(glist, start, stop, binlim, lim):
return ((int( "".join(glist[start:stop]), 2 )*1.0/binlim)*lim)
if __name__ == '__main__':
beer = Beer()
beer.development()
print beer
print beer.ann
print beer.ann.arcs
tracker = Tracker(beer.ann)
tracker.run()
示例4: _run_tracker
# 需要导入模块: from tracker import Tracker [as 别名]
# 或者: from tracker.Tracker import run [as 别名]
def _run_tracker(self):
os.system('clear')
from tracker import Tracker
tracker = Tracker({'align': 'c', 'width': 20})
tracker.run()