Skip to content

Instantly share code, notes, and snippets.

View nprithviraj24's full-sized avatar
🎯
Focusing

Prithvi Raju nprithviraj24

🎯
Focusing
View GitHub Profile
@nprithviraj24
nprithviraj24 / create_mask.py
Created August 17, 2021 06:48
This script accepts labelme's json filepath, and creates a segmentation mask.
import math
import sys
import json
import numpy as np
import PIL.Image
import PIL.ImageDraw
import cv2
def shape_to_mask(
img_shape, points, shape_type=None, line_width=10, point_size=5, mask=None
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nprithviraj24
nprithviraj24 / Boosting.md
Last active October 31, 2019 18:22
Understanding boosting algorithms

Prerequisite:

  • Basic understanding of traditional machine learning models.
  • Feature engineering of data.

Feature engineering of data is the process of extracting the contrasting features of the data. These features define the entirety of certain instance of the data. Feature engineering demands domain knowledge of the data that is being dealt with, and consequently it is applicable in traditional machine learning models.

A contrasting feature of the data contribute minimal to the definition of a particular instance. Hence classifier based on one feature will result weak learner because only one feature can't generalise the overall definition of the data. Data is defined by combination of features, that makes it a unique instance of particular domain. Weak learners fail to classify such a obvious fact.

Consider a classifying task such as predicting cat or a dog from a picture. The defining aspects of these two animals are wideness of mouth, sharpness of claws, size of limbs, shapes of eyes, size of th

DATA SCIENCE

Subjects:

  • Intro to programming
  • Statistics & Probability
  • Intro to Data Science
  • Data Visualization
  • Machine learning
  • Deep Learning