내용으로 건너뛰기
Out of the Box
사용자 도구
로그인
사이트 도구
검색
도구
문서 보기
이전 판
역링크
Fold/unfold all
최근 바뀜
미디어 관리자
사이트맵
로그인
>
최근 바뀜
미디어 관리자
사이트맵
추적:
•
2024-02_genie_generative_interactive_environments
•
2018-06_maximum_a_posteriori_policy_optimisation
•
perception-prediction-reaction_agents_for_deep_reinforcement_learning
•
search
•
2020-12_deepmind_lab2d
•
2021-07_reasoning-modulated_representations
•
expected_eligibility_traces
•
2023-12_diloco_distributed_low-communication_training_of_language_models
•
2021-07_perceiver_io_a_general_architecture_for_structured_inputs_outputs
•
2020-08_chess_transformer_mastering_play_using_generative_language_models
sparkline
이 문서는 읽기 전용입니다. 원본을 볼 수는 있지만 바꿀 수는 없습니다. 문제가 있다고 생각하면 관리자에게 문의하세요.
====== Sparkline ====== * https://rosettacode.org/wiki/Sparkline_in_unicode#Python * http://www.leancrew.com/all-this/2011/05/textexpander-sparkline-snippet/ <code python> # -*- coding: utf -*- import re try: raw_input except: raw_input = input # Unicode: 9601, 9602, 9603, 9604, 9605, 9606, 9607, 9608 try: bar = u'▁▂▃▄▅▆▇█' except: bar = '▁▂▃▄▅▆▇█' barcount = len(bar) - 1 while True: line = raw_input('Numbers please separated by space/commas: ') numbers = [float(n) for n in re.split(r'[\s,]+', line.strip())] mn, mx = min(numbers), max(numbers) extent = mx - mn sparkline = ''.join(bar[int( (n - mn) / extent * barcount)] for n in numbers) print('min: %5f; max: %5f' % (mn, mx)) print(sparkline) </code> {{tag>sparkling visualization unicode}}
sparkline.txt
· 마지막으로 수정됨:
2024/03/23 02:38
저자
127.0.0.1
문서 도구
문서 보기
이전 판
역링크
Fold/unfold all
맨 위로