- Introduction
- Crop Yield Maximization
- Text Classification
- Insurance Analysis
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
| # Load relevant libraries | |
| import numpy as np | |
| import pandas as pd | |
| import seaborn as sns | |
| from IPython.display import Image | |
| import matplotlib.pyplot as plt | |
| %matplotlib inline | |
| from pathlib import Path | |
| import random | |
| import os |
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
| # Code in file nn/two_layer_net_module.py | |
| import torch | |
| class TwoLayerNet(torch.nn.Module): | |
| def __init__(self, D_in, H, D_out): | |
| """ | |
| In the constructor we instantiate two nn.Linear modules and assign them as | |
| member variables. | |
| """ | |
| super(TwoLayerNet, self).__init__() |
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
| export function fetchUser(address) { | |
| return async function(dispatch) { | |
| try { | |
| const user = await origin.users.get(address) | |
| dispatch({ | |
| type: UserConstants.FETCH_SUCCESS, | |
| user, | |
| }) | |
| } catch(error) { |
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
| [ | |
| { | |
| "id": 0, | |
| "country": "ARE", | |
| "city": "abu dhabi", | |
| "lat": 24.453884, | |
| "lng": 54.377342, | |
| "deans": [ | |
| "Abdul Qureshi" | |
| ], |
Step 1 - Download test.prototxt from https://raw.githubusercontent.com/rbgirshick/py-faster-rcnn/master/models/pascal_voc/VGG16/faster_rcnn_end2end/test.prototxt
Step 2 - Download the pretrained models from https://dl.dropboxusercontent.com/s/o6ii098bu51d139/faster_rcnn_models.tgz?dl=0
python3 sraval/Desktop/mo_Caffe.py --input_model Downloads/VGG16_faster_rcnn_final.Caffe*model --input_proto sraval/Downloads/deploy.prototxt --extensions sraval/Downloads/fasterrcnn_extensions
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
| // array of poses/persons | |
| [ | |
| { // pose #1 | |
| "score": 0.42985695206067, | |
| "keypoints": [ | |
| { // nose | |
| "position": { | |
| "x": 126.09371757507, | |
| "y": 97.861720561981 | |
| }, |
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 keras | |
| # Step 1 - Load Data | |
| (X_train, y_train), (X_test, y_test) = load_data() | |
| # Step 2 Build Generative model (U-NET) | |
| g_input = Input(input_size) | |
| conv1 = Conv2D(32, (3, 3), activation='relu', padding='same')(g_input) |
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
| #deps | |
| #!pip install cython | |
| #!pip install spacy | |
| #1 - make rects | |
| #pseudo random number generator, dimensions of rectangle | |
| from random import random | |
| #OOP 0:) | |
| class Rectangle: |