Last active
August 23, 2017 04:40
-
-
Save danqing/bca0e2662ddd53fd9bebc4a44bf86e60 to your computer and use it in GitHub Desktop.
Machine learning for humans - What is machine learning 01 - www.tinymind.ai
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from datetime import datetime | |
def predict_head_or_tail(): | |
current_second = datetime.now().second | |
return 'head' if current_second % 2 else 'tail' | |
predict_head_or_tail() # 50/50 chance for head/tail |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment