Skip to content

Commit 77fd089

Browse files
committed
Merge branch 'dev' of github.com:maks-sh/scikit-uplift into dev
2 parents a140689 + 8ce17ee commit 77fd089

File tree

6 files changed

+35
-36
lines changed

6 files changed

+35
-36
lines changed

docs/api/datasets/fetch_criteo.rst

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,16 @@
66

77
.. autofunction:: sklift.datasets.datasets.fetch_criteo
88

9-
About the company
10-
##################
9+
.. include:: ../../../sklift/datasets/descr/criteo.rst
1110

12-
Criteo is an advertising company that provides online display advertisements.
13-
The company was founded and is headquartered in Paris, France. Criteo's product is a form of display advertising,
14-
which displays interactive banner advertisements, generated based on the online browsing preferences and behaviour for each customer.
15-
The solution operates on a pay per click/cost per click (CPC) basis.
11+
About Criteo
12+
##################
1613

1714
.. figure:: https://upload.wikimedia.org/wikipedia/commons/d/d2/Criteo_logo21.svg
1815

19-
Link to the company's website: https://www.criteo.com/
20-
16+
`Criteo <https://en.wikipedia.org/wiki/Criteo>`__ is an advertising company that provides online display advertisements.
17+
The company was founded and is headquartered in Paris, France. Criteo's product is a form of display advertising,
18+
which displays interactive banner advertisements, generated based on the online browsing preferences and behaviour for each customer.
19+
The solution operates on a pay per click/cost per click (CPC) basis.
2120

22-
.. include:: ../../../sklift/datasets/descr/criteo.rst
21+
Link to the company's website: https://www.criteo.com/

docs/api/datasets/fetch_hillstrom.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66

77
.. autofunction:: sklift.datasets.datasets.fetch_hillstrom
88

9-
About the company
9+
.. include:: ../../../sklift/datasets/descr/hillstrom.rst
10+
11+
About Hillstrom
1012
##################
1113

12-
The dataset was provided by Kevin Hillstorm.
14+
The dataset was provided by Kevin Hillstorm.
1315
Kevin is President of MineThatData, a consultancy that helps CEOs understand the complex relationship between Customers, Advertising, Products, Brands, and Channels.
1416

15-
Link to the blog website: https://blog.minethatdata.com/
16-
17-
.. include:: ../../../sklift/datasets/descr/hillstrom.rst
17+
Link to the blog: https://blog.minethatdata.com/

docs/api/datasets/fetch_lenta.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66

77
.. autofunction:: sklift.datasets.datasets.fetch_lenta
88

9-
About the company
10-
##################
9+
.. include:: ../../../sklift/datasets/descr/lenta.rst
1110

12-
Lenta (Russian: Лентa) is a Russian super - and hypermarket chain. With 149 locations across the country,
13-
it is one of Russia's largest retail chains in addition to being the country's second largest hypermarket chain.
11+
About Lenta
12+
##################
1413

1514
.. figure:: https://upload.wikimedia.org/wikipedia/commons/7/73/Lenta_logo.svg
1615

17-
Link to the company's website: https://www.lenta.com/
16+
`Lenta (Russian: Лентa) <https://en.wikipedia.org/wiki/Lenta_(retail)>`__ is a Russian super - and hypermarket chain. With 149 locations across the country,
17+
it is one of Russia's largest retail chains in addition to being the country's second largest hypermarket chain.
1818

19-
.. include:: ../../../sklift/datasets/descr/lenta.rst
19+
Link to the company's website: https://www.lenta.com/

docs/api/datasets/fetch_megafon.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66

77
.. autofunction:: sklift.datasets.datasets.fetch_megafon
88

9-
About the company
10-
##################
9+
.. include:: ../../../sklift/datasets/descr/megafon.rst
1110

12-
MegaFon (Russian: МегаФон), previously known as North-West GSM, is the second largest mobile phone operator and the third largest telecom operator in Russia.
13-
It works in the GSM, UMTS and LTE standard. As of June 2012, the company serves 62.1 million subscribers in Russia and 1.6 million in Tajikistan. It is headquartered in Moscow.
11+
About MegaFon
12+
##################
1413

1514
.. figure:: https://upload.wikimedia.org/wikipedia/commons/9/9e/MegaFon_logo.svg
1615

17-
Link to the company's website: https://megafon.ru/
16+
`MegaFon (Russian: МегаФон) <https://en.wikipedia.org/wiki/MegaFon>`__ , previously known as North-West GSM, is the second largest mobile phone operator and the third largest telecom operator in Russia.
17+
It works in the GSM, UMTS and LTE standard. As of June 2012, the company serves 62.1 million subscribers in Russia and 1.6 million in Tajikistan. It is headquartered in Moscow.
1818

19-
.. include:: ../../../sklift/datasets/descr/megafon.rst
19+
Link to the company's website: https://megafon.ru/

docs/api/datasets/fetch_x5.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@
66

77
.. autofunction:: sklift.datasets.datasets.fetch_x5
88

9-
About the company
9+
.. include:: ../../../sklift/datasets/descr/x5.rst
10+
11+
About X5
1012
##################
1113

12-
X5 Group is a leading Russian food retailer.
14+
.. figure:: https://upload.wikimedia.org/wikipedia/en/8/83/X5_Retail_Group_logo_2015.png
15+
16+
`X5 Group <https://en.wikipedia.org/wiki/X5_Retail_Group>`__ is a leading Russian food retailer.
1317
The Company operates several retail formats: proximity stores under the Pyaterochka brand,
1418
supermarkets under the Perekrestok brand and hypermarkets under the Karusel brand, as well as the Perekrestok.ru online market,
1519
the 5Post parcel and Dostavka.Pyaterochka and Perekrestok. Bystro food delivery services.
1620

17-
.. figure:: https://upload.wikimedia.org/wikipedia/en/8/83/X5_Retail_Group_logo_2015.png
18-
19-
Link to the company's website: https://www.x5.ru/
20-
21-
.. include:: ../../../sklift/datasets/descr/x5.rst
21+
Link to the company's website: https://www.x5.ru/

sklift/datasets/datasets.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ def fetch_x5(data_home=None, dest_subdir=None, download_if_missing=True):
262262
263263
:func:`.fetch_megafon`: Load and return the MegaFon Uplift Competition dataset (classification).
264264
"""
265-
url_train = 'https://timds.s3.eu-central-1.amazonaws.com/uplift_train.csv.gz'
265+
url_train = 'https://sklift.s3.eu-west-2.amazonaws.com/uplift_train.csv.gz'
266266
file_train = url_train.split('/')[-1]
267267
csv_train_path = _get_data(data_home=data_home, url=url_train, dest_subdir=dest_subdir,
268268
dest_filename=file_train,
@@ -277,15 +277,15 @@ def fetch_x5(data_home=None, dest_subdir=None, download_if_missing=True):
277277

278278
train = train.drop([target_col, treatment_col], axis=1)
279279

280-
url_clients = 'https://timds.s3.eu-central-1.amazonaws.com/clients.csv.gz'
280+
url_clients = 'https://sklift.s3.eu-west-2.amazonaws.com/clients.csv.gz'
281281
file_clients = url_clients.split('/')[-1]
282282
csv_clients_path = _get_data(data_home=data_home, url=url_clients, dest_subdir=dest_subdir,
283283
dest_filename=file_clients,
284284
download_if_missing=download_if_missing)
285285
clients = pd.read_csv(csv_clients_path)
286286
clients_features = list(clients.columns)
287287

288-
url_purchases = 'https://timds.s3.eu-central-1.amazonaws.com/purchases.csv.gz'
288+
url_purchases = 'https://sklift.s3.eu-west-2.amazonaws.com/purchases.csv.gz'
289289
file_purchases = url_purchases.split('/')[-1]
290290
csv_purchases_path = _get_data(data_home=data_home, url=url_purchases, dest_subdir=dest_subdir,
291291
dest_filename=file_purchases,

0 commit comments

Comments
 (0)