b7990885d8b26b9404fd9ce952b0b2f005019594,california_housing/feature_engineering.py,,,#,23
Before Change
//make a stratified split of the data
split = StratifiedShuffleSplit(n_splits=1, test_size=0.2, random_state=42)
for train_index, test_index in split.split(housing, housing["income_cat"]):
train_set = housing.loc[train_index]
test_set = housing.loc[test_index]
for set_ in (train_set, test_set):
set_.drop("income_cat", axis=1, inplace=True)
gc.collect()
//////////
// plot data
After Change
x = vincenty(newport_ri, cleveland_oh)
x //distance stored in km, see units on printing
print(x)
type(x.kilometers)
/ǘ. take a dict[city] = (lat, long) of locations and a tuple of lat long
// run number 1 for each comparison and return a tuple with
//the closest city"s key + value and the distance between the points
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: CNuge/kaggle-code
Commit Name: b7990885d8b26b9404fd9ce952b0b2f005019594
Time: 2018-01-12
Author: nugentc@uoguelph.ca
File Name: california_housing/feature_engineering.py
Class Name:
Method Name:
Project Name: OpenMined/PySyft
Commit Name: 5c66e3d20241bdcb2d885c683dc721ca884eaf37
Time: 2020-11-10
Author: me@madhavajay.com
File Name: src/syft/util.py
Class Name:
Method Name: obj2pointer_type
Project Name: prody/ProDy
Commit Name: 7ca79b945accfbf1c5e435eac1e9e25c0d808272
Time: 2018-02-19
Author: jamesmkrieger@gmail.com
File Name: prody/proteins/blastpdb.py
Class Name:
Method Name: blastPDB