I am no longer abe to monitor this post , I have decided to move everything to my personal blog for better monitoring.
Please click here to access the full post
I am no longer abe to monitor this post , I have decided to move everything to my personal blog for better monitoring.
Please click here to access the full post
| # single prediction on last classifier | |
| learn.load('clas_2') | |
| m = learn.model | |
| #set batch size to 1 | |
| m[0].bs=1 | |
| #turn off dropout | |
| m.eval() | |
| #reset hidden state | |
| m.reset() |
| import asyncio | |
| from concurrent import futures | |
| import functools | |
| import inspect | |
| import threading | |
| from grpc import _server | |
| def _loop_mgr(loop: asyncio.AbstractEventLoop): |
| /**------------------------------------------------- | |
| * Simple Captcha System | |
| * @package Code Snippets | |
| * @link http://rhythmshahriar.com/codes/ | |
| * @author Rhythm Shahriar <[email protected]> | |
| * @link http://rhythmshahriar.com | |
| * @copyright Copyright © 2017, Rhythm Shahriar | |
| ---------------------------------------------------*/ | |
| body { | |
| background-color: #2d2d2d; |
https://realpython.com/blog/python/asynchronous-tasks-with-django-and-celery/
$ pip install celery
$ sudo apt-get install rabbitmq-server
I have collected and moderated these ideas from various public sources and put into one place so that problem solvers and solution developers may find inspirations. Because I wish to update it regularly, I have setup as a single page wiki. You may try these ideas on hackathons/competitions/research; some are quite intense problems and some are not. Many of the problems were prepared keeping Dhaka/Bangladesh in mind, but of course can be applied to just about any underdeveloped/developing and sometimes developed countries.
| """ | |
| Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy) | |
| BSD License | |
| """ | |
| import numpy as np | |
| # data I/O | |
| data = open('input.txt', 'r').read() # should be simple plain text file | |
| chars = list(set(data)) | |
| data_size, vocab_size = len(data), len(chars) |