コード例 #1
0
def test_learning_tracker_broken_feedback_curve_reproduction():
    lt = LearningTracker(epoch=datetime.now())
    lt.learned(result=0.44, when=0.8)
    lt.learned(result=0.64, when=1.75)
    lt.learned(result=0.55, when=1.3)
    lt.learned(result=0.40, when=0.001)
    lt.learned(result=0.64, when=3.02)
    lt.plot_graphs(stop=30)
    lt.save_figure("results/lt_broken_feedback_curve.pdf")
コード例 #2
0
def test_learning_tracker_longterm_response():
    start_time = datetime.now()
    moments, results = get_feedback1()

    lt = LearningTracker(epoch=start_time)
    for index, (moment, result) in enumerate(zip(moments[0:2], results)):
        lt.learned(when=moment, result=result)

    hd, _ = lt.plot_graphs(stop=300)
    lt.save_figure("results/space_learning_tracker_too_long.pdf")
    hd.close()