Skip to content

Instantly share code, notes, and snippets.

View Rishit-dagli's full-sized avatar
:octocat:
Making Machines Learn

Rishit Dagli Rishit-dagli

:octocat:
Making Machines Learn
View GitHub Profile
@Rishit-dagli
Rishit-dagli / MakeCode-Android_CLA.md
Created May 26, 2020 04:38
CLA for MakeCode-Android repo

Contribution License Agreement

This Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”), and conveys certain license rights to Rishit Dagli for Your contributions to Rishit Dagli's open source projects. This Agreement is effective upon Your acknowledgment via the CLA Assistant tool. All prospective contributors to Rishit Dagli's open source projects must sign this Agreement (digitally or otherwise) before any changes will be merged.

1. Definitions.

“Code” means the computer software code, whether in human-readable or machine-executable form, that is delivered by You to Rishit Dagli under this Agreement.

“Project” means any of the projects owned or managed by Rishit Dagli in which software is offered under a license approved by the Open Source Initiative (OSI) (www.opensource.org) and/or documentation offered under an OSI or a Creative Commons license (https://creativecommons.org/licenses).

“Submit” is the act of uploading, submitting, transmitting, or distribu

@Rishit-dagli
Rishit-dagli / image_to_tensor_to_image.py
Created May 25, 2020 17:57
Convert images to tensors and vice-versa
def image_to_tensor(path_to_img):
img = tf.io.read_file(path_to_img)
img = tf.image.decode_image(img, channels=3, dtype=tf.float32)
# Resize the image to specific dimensions
img = tf.image.resize(img, [720, 512])
img = img[tf.newaxis, :]
return img
def tensor_to_image(tensor):
@Rishit-dagli
Rishit-dagli / People-Counter-On-Edge_CLA.md
Created May 14, 2020 16:09
CLA for People-Counter-On-Edge

Contribution License Agreement

This Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”), and conveys certain license rights to Rishit Dagli for Your contributions to Rishit Dagli's open source projects. This Agreement is effective upon Your acknowledgment via the CLA Assistant tool. All prospective contributors to Rishit Dagli's open source projects must sign this Agreement (digitally or otherwise) before any changes will be merged.

1. Definitions.

“Code” means the computer software code, whether in human-readable or machine-executable form, that is delivered by You to Rishit Dagli under this Agreement.

“Project” means any of the projects owned or managed by Rishit Dagli in which software is offered under a license approved by the Open Source Initiative (OSI) (www.opensource.org) and/or documentation offered under an OSI or a Creative Commons license (https://creativecommons.org/licenses).

“Submit” is the act of uploading, submitting, transmitting, or distribu

@Rishit-dagli
Rishit-dagli / GDG_AHmedabad_CLA.md
Created May 11, 2020 15:38
CLA for GDG Ahmedabad 2020 talk repo

Contribution License Agreement

This Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”), and conveys certain license rights to Rishit Dagli for Your contributions to Rishit Dagli's open source projects. This Agreement is effective upon Your acknowledgment via the CLA Assistant tool. All prospective contributors to Rishit Dagli's open source projects must sign this Agreement (digitally or otherwise) before any changes will be merged.

1. Definitions.

“Code” means the computer software code, whether in human-readable or machine-executable form, that is delivered by You to Rishit Dagli under this Agreement.

“Project” means any of the projects owned or managed by Rishit Dagli in which software is offered under a license approved by the Open Source Initiative (OSI) (www.opensource.org) and/or documentation offered under an OSI or a Creative Commons license (https://creativecommons.org/licenses).

“Submit” is the act of uploading, submitting, transmitting, or distribu

@Rishit-dagli
Rishit-dagli / whatsapp_mass_messaging_cla.md
Created May 11, 2020 14:01
CLA for Whatsapp mass messaging

Contribution License Agreement

This Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”), and conveys certain license rights to Rishit Dagli for Your contributions to Rishit Dagli's open source projects. This Agreement is effective upon Your acknowledgment via the CLA Assistant tool. All prospective contributors to Rishit Dagli's open source projects must sign this Agreement (digitally or otherwise) before any changes will be merged.

1. Definitions.

“Code” means the computer software code, whether in human-readable or machine-executable form, that is delivered by You to Rishit Dagli under this Agreement.

“Project” means any of the projects owned or managed by Rishit Dagli in which software is offered under a license approved by the Open Source Initiative (OSI) (www.opensource.org) and/or documentation offered under an OSI or a Creative Commons license (https://creativecommons.org/licenses).

“Submit” is the act of uploading, submitting, transmitting, or distribu

@Rishit-dagli
Rishit-dagli / 10_Days_Of_ML_CLA.md
Last active May 11, 2020 14:01
CLA for 10 Days of ML

Contribution License Agreement

This Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”), and conveys certain license rights to Rishit Dagli for Your contributions to Rishit Dagli's open source projects. This Agreement is effective upon Your acknowledgment via the CLA Assistant tool. All prospective contributors to Rishit Dagli's open source projects must sign this Agreement (digitally or otherwise) before any changes will be merged.

1. Definitions.

“Code” means the computer software code, whether in human-readable or machine-executable form, that is delivered by You to Rishit Dagli under this Agreement.

“Project” means any of the projects owned or managed by Rishit Dagli in which software is offered under a license approved by the Open Source Initiative (OSI) (www.opensource.org) and/or documentation offered under an OSI or a Creative Commons license (https://creativecommons.org/licenses).

“Submit” is the act of uploading, submitting, transmitting, or distribu

@Rishit-dagli
Rishit-dagli / save_model_json.py
Created April 13, 2020 15:49
Create a JSON saved file for saving ML model parameters
```
We can also save the model parameters in a JSON file and load them back.
In the example below, we will save the model coefficients and intercept and load them back.
We will first import the json library, create a dictionary containing the coefficients and intercept.
Coefficients and intercept are an array object.
We cannot dump an array into JSON strings so we convert the array to a list and store it in the dictionary
```
import json
model_param = {}
@Rishit-dagli
Rishit-dagli / np_example.kt
Created April 7, 2020 05:34
Numpy Bindings example in Kotlin
// Kotlin
import org.jetbrains.numkt.*
fun main() {
val a = arange(15).reshape(3, 5)
println(a.shape.contentEquals(intArrayOf(3, 5))) // true
println(a.ndim == 2) // true
println(a.dtype) // class java.lang.Integer
@Rishit-dagli
Rishit-dagli / np_example.py
Created April 7, 2020 05:33
Numpy Example
# Python
import numpy as np
a = np.arange(15).reshape(3, 5)
print(a.shape == (3, 5)) # True
print(a.ndim == 2) # True
print(a.dtype.name) # 'int64'
b = (np.arange(15) ** 2).reshape(3, 5)
@Rishit-dagli
Rishit-dagli / financial_aid.md
Created April 5, 2020 07:03
My accepted Coursera Financial Aid application for TF in practice specialization

Why are you applying for Financial Aid?

I’m a student from India keen to learn about Machine Learning, Deep Learning, and TensorFlow. Since the quality of education in our institution is not up to the mark, the only way to get a viable career option in the future for me is to take this course. Since I am a student and our college does not permit a part-time job, I would not be able to carry the expenses to pay for the certificate of this course. Financial Aid will help me take this course without any adverse impact on my monthly essential needs. I am really excited for this course since it presents me with a great opportunity to grow my skills and become a professional in this field as I graduate in the same or prospective fields with a great resume.