This file contains 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
amount,duration,rate,down_payment | |
10000,36,0.08,20000 | |
200000,12,0.1, | |
628400,120,0.12,100000 | |
4637400,240,0.06, | |
42900,90,0.07,8900 | |
916000,16,0.13, | |
45230,48,0.08,4300 | |
991360,99,0.08, | |
423000,27,0.09,47200 |
This file contains 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
#!/usr/bin/env python3 | |
# Copyright (c) 2017-present, Facebook, Inc. | |
# All rights reserved. | |
# | |
# This source code is licensed under the license found in the LICENSE file in | |
# the root directory of this source tree. An additional grant of patent rights | |
# can be found in the PATENTS file in the same directory. | |
""" | |
Run inference for pre-processed data with a trained model. | |
""" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
from fastai.conv_learner import ConvLearner, num_cpus, accuracy | |
def get_learner(arch, bs): | |
"""Create a FastAI learner using the given model""" | |
data = get_data(bs, num_cpus()) | |
learn = ConvLearner.from_model_data(arch.cuda(), data) | |
learn.crit = nn.CrossEntropyLoss() | |
learn.metrics = [accuracy] | |
return learn |
This file contains 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 torch.nn as nn | |
import torch.nn.functional as F | |
def conv_2d(ni, nf, stride=1, ks=3): | |
return nn.Conv2d(in_channels=ni, out_channels=nf, | |
kernel_size=ks, stride=stride, | |
padding=ks//2, bias=False) | |
def bn_relu_conv(ni, nf): | |
return nn.Sequential(nn.BatchNorm2d(ni), |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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 Loadable from "react-loadable"; | |
import Loading from "./Loading"; | |
const AsyncSettingsPage = Loadable({ | |
loader: () => import("./SettingsPage"), | |
loading: Loading | |
}); | |
export { AsyncSettingsPage }; |
This file contains 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
#!/usr/bin/python | |
# Note to Kagglers: This script will not run directly in Kaggle kernels. You | |
# need to download it and run it on your local machine. | |
# Downloads images from the Google Landmarks dataset using multiple threads. | |
# Images that already exist will not be downloaded again, so the script can | |
# resume a partially completed download. All images will be saved in the JPG | |
# format with 90% compression quality. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
// Selectors for specific fields | |
const getName = data => data.name; | |
const getAddress = data => data.address; | |
const getSubscribeToNewsLetter = data => data.subscribeToNewsLetter; | |
// Action creators for specific fields | |
const setName = name => editContactForm({ name }); | |
const setAddress = address => editContactForm({ address }); | |
const setSubscribeToNewsletter = v => | |
editContactForm({ subscribeToNewsLetter: v }); |
NewerOlder