Skip to content

Instantly share code, notes, and snippets.

@danqing
Last active August 23, 2017 04:40
Show Gist options
  • Save danqing/bca0e2662ddd53fd9bebc4a44bf86e60 to your computer and use it in GitHub Desktop.
Save danqing/bca0e2662ddd53fd9bebc4a44bf86e60 to your computer and use it in GitHub Desktop.
Machine learning for humans - What is machine learning 01 - www.tinymind.ai
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