Skip to content

Instantly share code, notes, and snippets.

View noveoko's full-sized avatar
🏠
Working from home

Marcin Kraszewski noveoko

🏠
Working from home
View GitHub Profile
@noveoko
noveoko / AI_learning.md
Last active July 23, 2023 16:09
Artificial Intelligence Resources

An Overview of AI and Machine Learning Topics

This comprehensive guide provides an introduction to various topics in the field of Artificial Intelligence and Machine Learning. It includes resources for further learning for each topic.

1. Machine Learning

XKCD Comic - Machine Learning

Machine learning algorithms enable computers to learn from and make decisions or predictions based on data.

@noveoko
noveoko / resources.md
Created June 24, 2023 11:11 — forked from mrkatey/resources.md
Tons of Awesome Resources (data, ai etc.)
@noveoko
noveoko / install_ludwig.sh
Created November 1, 2022 16:01
Install Ludwig
python -m venv venv
source ./venv/bin/activate
pip install --upgrade pip
pip install "tensorflow-io-gcs-filesystem==0.21.0"
pip install --upgrade --no-deps --force-reinstall "cupy-cuda114"
pip install --upgrade --no-deps --force-reinstall "distributed==2021.09.1"
pip install --upgrade --no-deps --force-reinstall "dask==2021.09.1"
pip install ludwig
pip install torch -f https://download.pytorch.org/whl/cu113/torch_stable.html
@noveoko
noveoko / metryki_scrape.py
Last active August 31, 2022 19:41
Fetch Data from Metryki
import requests
import time
list_of_last_names = ['Nowak','Smith']
def get_all_hits(last_name):
url = f"https://geneszukacz.genealodzy.pl/index.php?search_lastname={last_name}&from_date=&to_date=&rpp1=&bdm=&url1=&w=&lang=pol&op=se"
payload={}
@noveoko
noveoko / generate_words.py
Created March 26, 2022 19:24
naive text generation using next character statistics
from collections import Counter, defaultdict
import re
import random
MIN_WORD_LEN = 3
PATH = 'src/usa_last_names.txt'
#PATH = 'src/news_article.txt'
def word_size_frequency(words:list[str]):
@noveoko
noveoko / extract_birth_name_location_date.py
Last active March 13, 2022 21:25
Create a dataset for predicting origin based on name
#pip install -U pip setuptools wheel
!pip install -U spacy
!python -m spacy download en_core_web_sm
import spacy
import csv
import re
import string
import PyPDF2
from glob import glob
from pathlib import Path
from os import sys
try:
ROOT = Path(sys.argv[0]).as_posix()
TITLE = sys.argv[1]
except KeyError as ke:
print(ke)