Dataset Viewer
Auto-converted to Parquet Duplicate
code
stringlengths
2.5k
150k
kind
stringclasses
1 value
# 09 Strain Gage This is one of the most commonly used sensor. It is used in many transducers. Its fundamental operating principle is fairly easy to understand and it will be the purpose of this lecture. A strain gage is essentially a thin wire that is wrapped on film of plastic. <img src="img/StrainGage.png" wi...
github_jupyter
``` #export from fastai.basics import * from fastai.tabular.core import * from fastai.tabular.model import * from fastai.tabular.data import * #hide from nbdev.showdoc import * #default_exp tabular.learner ``` # Tabular learner > The function to immediately get a `Learner` ready to train for tabular data The main fu...
github_jupyter
# Aerospike Connect for Spark - SparkML Prediction Model Tutorial ## Tested with Java 8, Spark 3.0.0, Python 3.7, and Aerospike Spark Connector 3.0.0 ## Summary Build a linear regression model to predict birth weight using Aerospike Database and Spark. Here are the features used: - gestation weeks - mother’s age - fat...
github_jupyter
## Concurrency with asyncio ### Thread vs. coroutine ``` # spinner_thread.py import threading import itertools import time import sys class Signal: go = True def spin(msg, signal): write, flush = sys.stdout.write, sys.stdout.flush for char in itertools.cycle('|/-\\'): status = char + ' ' + msg ...
github_jupyter
## Problem 1 --- #### The solution should try to use all the python constructs - Conditionals and Loops - Functions - Classes #### and datastructures as possible - List - Tuple - Dictionary - Set ### Problem --- Moist has a hobby -- collecting figure skating trading cards. His card collection has been growing, an...
github_jupyter
<a href="http://cocl.us/pytorch_link_top"> <img src="https://s3-api.us-geo.objectstorage.softlayer.net/cf-courses-data/CognitiveClass/DL0110EN/notebook_images%20/Pytochtop.png" width="750" alt="IBM Product " /> </a> <img src="https://s3-api.us-geo.objectstorage.softlayer.net/cf-courses-data/CognitiveClass/DL0110EN...
github_jupyter
``` import nltk from nltk.stem import PorterStemmer from nltk.corpus import stopwords import re paragraph = """I have three visions for India. In 3000 years of our history, people from all over the world have come and invaded us, captured our lands, conquered our minds. From Alexander on...
github_jupyter
# Classification on Iris dataset with sklearn and DJL In this notebook, you will try to use a pre-trained sklearn model to run on DJL for a general classification task. The model was trained with [Iris flower dataset](https://en.wikipedia.org/wiki/Iris_flower_data_set). ## Background ### Iris Dataset The dataset c...
github_jupyter
<table class="ee-notebook-buttons" align="left"> <td><a target="_blank" href="https://github.com/giswqs/earthengine-py-notebooks/tree/master/Algorithms/landsat_radiance.ipynb"><img width=32px src="https://www.tensorflow.org/images/GitHub-Mark-32px.png" /> View source on GitHub</a></td> <td><a target="_blank" ...
github_jupyter
# Import Libraries ``` from __future__ import print_function import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim import torchvision from torchvision import datasets, transforms %matplotlib inline import matplotlib.pyplot as plt ``` ## Data Transformations We first start wi...
github_jupyter
``` %cd /Users/Kunal/Projects/TCH_CardiacSignals_F20/ from numpy.random import seed seed(1) import numpy as np import os import matplotlib.pyplot as plt import tensorflow tensorflow.random.set_seed(2) from tensorflow import keras from tensorflow.keras.callbacks import EarlyStopping from tensorflow.keras.regularizers im...
github_jupyter
# basic operation on image ``` import cv2 import numpy as np impath = r"D:/Study/example_ml/computer_vision_example/cv_exercise/opencv-master/samples/data/messi5.jpg" img = cv2.imread(impath) print(img.shape) print(img.size) print(img.dtype) b,g,r = cv2.split(img) img = cv2.merge((b,g,r)) cv2.imshow("image",img) cv2....
github_jupyter
Create a list of valid Hindi literals ``` a = list(set(list("ऀँंःऄअआइईउऊऋऌऍऎएऐऑऒओऔकखगघङचछजझञटठडढणतथदधनऩपफबभमयरऱलळऴवशषसहऺऻ़ऽािीुूृॄॅॆेैॉॊोौ्ॎॏॐ॒॑॓॔ॕॖॗक़ख़ग़ज़ड़ढ़फ़य़ॠॡॢॣ।॥॰ॱॲॳॴॵॶॷॸॹॺॻॼॽॾॿ-"))) len(genderListCleared),len(set(genderListCleared)) genderListCleared = list(set(genderListCleared)) mCount = 0 fCount = 0 nCount = 0 f...
github_jupyter
``` import pandas as pd import numpy as np import matplotlib import seaborn as sns import matplotlib.pyplot as plt pd.set_option('display.max_colwidth', -1) default = pd.read_csv('./results/results_default.csv') new = pd.read_csv('./results/results_new.csv') selected_cols = ['model','hyper','metric','value'] default = ...
github_jupyter
``` import numpy as np import pandas as pd import matplotlib.pyplot as plt from matplotlib import style import matplotlib.ticker as ticker import seaborn as sns from sklearn.datasets import load_boston from sklearn.ensemble import RandomForestClassifier, VotingClassifier, GradientBoostingClassifier from sklearn.metrics...
github_jupyter
# Delfin ### Installation Run the following cell to install osiris-sdk. ``` !pip install osiris-sdk --upgrade ``` ### Access to dataset There are two ways to get access to a dataset 1. Service Principle 2. Access Token #### Config file with Service Principle If done with **Service Principle** it is adviced to add ...
github_jupyter
<a href="https://colab.research.google.com/github/PradyumnaKrishna/Colab-Hacks/blob/RDP-v2/Colab%20RDP/Colab%20RDP.ipynb" target="_parent"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/></a> # **Colab RDP** : Remote Desktop to Colab Instance Used Google Remote Desktop & Ngrok...
github_jupyter
``` from xml.dom import expatbuilder import numpy as np import matplotlib.pyplot as plt import struct import os # should be in the same directory as corresponding xml and csv eis_filename = '/example/path/to/eis_image_file.dat' image_fn, image_ext = os.path.splitext(eis_filename) eis_xml_filename = image_fn + ".xml" ``...
github_jupyter
# Cryptocurrency Clusters ``` %matplotlib inline #import dependencies from pathlib import Path import pandas as pd import numpy as np import matplotlib.pyplot as plt from sklearn.preprocessing import StandardScaler from sklearn.manifold import TSNE from sklearn.decomposition import PCA from sklearn.cluster import KMea...
github_jupyter
Our best model - Catboost with learning rate of 0.7 and 180 iterations. Was trained on 10 files of the data with similar distribution of the feature user_target_recs (among the number of rows of each feature value). We received an auc of 0.845 on the kaggle leaderboard #Mount Drive ``` from google.colab import drive ...
github_jupyter
# Random Search Algorithms ### Importing Necessary Libraries ``` import six import sys sys.modules['sklearn.externals.six'] = six import mlrose import numpy as np import pandas as pd import seaborn as sns import mlrose_hiive import matplotlib.pyplot as plt np.random.seed(44) sns.set_style("darkgrid") ``` ### Definin...
github_jupyter
``` %matplotlib inline ``` Performance Tuning Guide ************************* **Author**: `Szymon Migacz <https://github.com/szmigacz>`_ Performance Tuning Guide is a set of optimizations and best practices which can accelerate training and inference of deep learning models in PyTorch. Presented techniques often can...
github_jupyter
# 78. Subsets __Difficulty__: Medium [Link](https://leetcode.com/problems/subsets/) Given an integer array `nums` of unique elements, return all possible subsets (the power set). The solution set must not contain duplicate subsets. Return the solution in any order. __Example 1__: Input: `nums = [1,2,3]` Output: `[...
github_jupyter
``` #r "nuget:Microsoft.ML,1.4.0" #r "nuget:Microsoft.ML.AutoML,0.16.0" #r "nuget:Microsoft.Data.Analysis,0.1.0" using Microsoft.Data.Analysis; using XPlot.Plotly; using Microsoft.AspNetCore.Html; Formatter<DataFrame>.Register((df, writer) => { var headers = new List<IHtmlContent>(); headers.Add(th(i("index")))...
github_jupyter
End of preview. Expand in Data Studio

Dataset Card for "clean_notebooks"

More Information needed

Downloads last month
13