Skip to content

Instantly share code, notes, and snippets.

@onidzelskyi
onidzelskyi / README.md
Last active September 27, 2024 11:26
Raspberry pi 5 Ubuntu 24 headless installation

Install Ubuntu 24 LTS on Raspberry Pi 5 in headless mode

TBD

Installation


@onidzelskyi
onidzelskyi / Simple_linear_regression_example_in_Python.ipynb
Created May 15, 2024 10:12
Simple linear regression example in Python
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@onidzelskyi
onidzelskyi / Remove_background.ipynb
Created March 13, 2019 14:29
Remove background from image with python
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@onidzelskyi
onidzelskyi / language_detect.py
Created December 25, 2018 11:13
Language detect
""" -*- coding: utf-8 -*-
#
# Sample program for language detection
# Link to original paper https://www.kleemans.ch/letter-frequency
#
# How to run
# 1. add environment PYTHONIOENCODING="UTF-8"
# 2. python language_detect.py < letter_frequency.csv
#
"""
@onidzelskyi
onidzelskyi / Word_embeddings_vs_TFIDF_for_text_classification_task
Created July 9, 2018 07:33
Demo app to demonstrate comparison of two main approaches for solving text classification task: TFIDF and Word embeddings
# Word embeddings with GloVe50
# This demo aims to show up the technique, alternative to famous TFIDF.
# Helper functions:
# read_glove_vecs - reads GloVe data from glove.6B.50d.txt into word_to_vec_map
# sentence_to_avg - converts sentence to its vector representation (50 dimensional in case of using glove.6B.50d
# as word embeddings data source)source
from sklearn.metrics.pairwise import cosine_similarity
def read_glove_vecs(glove_file):
@onidzelskyi
onidzelskyi / A_Simple_Product_Category_Classification.ipynb
Created February 23, 2017 08:10
Simple product classification task by category.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@onidzelskyi
onidzelskyi / face_identification.ipynb
Last active February 7, 2019 13:43
Simple Python app show you easy way to identify particular face among the other faces
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.