- Deep dive into actual practice https://www.fast.ai/
- Datasets and challenges https://www.kaggle.com/
- Project ideas https://github.com/NirantK/awesome-project-ideas
- Essential theory https://www.coursera.org/learn/machine-learning
- Rapid experimentation with neural networks https://keras.io/
- Deep Learning with Keras by Francois Chollet https://www.amazon.com/Deep-Learning-Keras-Implementing-learning/dp/1787128423
- Follow this dude for cool ML tutorials https://twitter.com/iamtrask
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
import re | |
import math | |
import enchant | |
d = enchant.Dict("en_US") | |
def replace_noneng_sents(text: str, replace_with_spaces=True, | |
split_regex=r"[\.\。\!\?\?]", | |
clean_regex=r"[^a-zA-Z\']", | |
threshold=0.5, | |
debug=False) -> str: |
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
// Create an interval which will keep scrolling downwards | |
const interval = setInterval(() => { | |
window.scrollTo(0, document.body.scrollHeight) | |
}, 250) | |
// If there are no more items, you can call `clearInterval(interval)` to stop scrolling | |
// Now copy the below code to scrape data and download a file containing the data | |
;(() => { | |
// Define a function to scrape elements we want |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
-- get hours on a project, 0 is no hours | |
SELECT | |
name, | |
ifnull(SUM(w.hours), | |
0) AS hours | |
FROM ( | |
SELECT | |
DISTINCT(name), | |
id, | |
0 AS hours |
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
import shutil | |
import random | |
from pathlib import Path | |
from typing import List | |
def dataset_splitter(output_dir: str = 'output', classes: List[str] = [], num_train=0, num_validation=0): | |
"""In the current directory, take files of a class and randomly copy a certain number of training examples | |
and validation examples into a new output directory. |
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
var cool = null | |
$.get('https://beatobongco.com/book-highlights/book/shoe-dog', function(a) { | |
var el = document.createElement('html') | |
el.innerHTML = a | |
cool = el | |
}) | |
$('#raw-notes', cool).text() // gets contentes of div with id raw-notes |
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
// 1. Enter sheet name where data is to be written below | |
var SHEET_NAME = "Sheet1"; | |
// 2. Run > setup | |
// | |
// 3. Publish > Deploy as web app | |
// - enter Project Version name and click 'Save New Version' | |
// - set security level and enable service (most likely execute as 'me' and access 'anyone, even anonymously) | |
// | |
// 4. Copy the 'Current web app URL' and post this in your form/script action |
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
.test { | |
width: 100%; | |
} |
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
function Queue() { | |
this._sleep = 0 | |
this.add = function(f, sleep) { | |
this._sleep += sleep | |
setTimeout(function(){ | |
f() | |
}, this._sleep) | |
} | |
} |
NewerOlder