Skip to content

Commit

Permalink
Merge pull request #1 from DoubleML/m-prepare-publication
Browse files Browse the repository at this point in the history
prepare upload of working paper to arXiv and serverless application to the AWS Serverless Application Repository
  • Loading branch information
MalteKurz authored Jan 11, 2021
2 parents 645a603 + b2f8e7d commit 53102ee
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 29 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ jobs:
pip install .
- name: Test with pytest
run: |
pytest -m ci
pytest
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ The corresponding serverless application consists of the following components:

There are two options for deployment:

1. A version of DoubleML-Serverless is available in the AWS Serverless Application Repository. It can be deployed by clicking on the `Deploy` button.
1. A version of DoubleML-Serverless is available in the AWS Serverless Application Repository: [https://serverlessrepo.aws.amazon.com/applications/eu-central-1/839779594349/doubleml-serverless](https://serverlessrepo.aws.amazon.com/applications/eu-central-1/839779594349/doubleml-serverless). It can be deployed by clicking on the `Deploy` button.

2. The second option for deployment is based on AWS Serverless Application Model (AWS SAM).

Expand Down
2 changes: 1 addition & 1 deletion aws_lambda_app/lambda_layers/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
numpy
pandas
sklearn
scikit-learn==0.23.2
19 changes: 1 addition & 18 deletions aws_lambda_app/template.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,6 @@
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: SAM Template for doubleml-serverless

Metadata:
AWS::ServerlessRepo::Application:
Name: doubleml-serverless
Description: Distributed Double Machine Learning with a Serverless Architecture
Author: Malte S. Kurz
SpdxLicenseId: MIT
LicenseUrl: ../LICENSE
ReadmeUrl: ../README.md
Labels: ['machine-learning', 'python', 'ml', 'scikit-learn']
HomePageUrl: https://github.com/DoubleML/doubleml-serverless
SemanticVersion: 0.0.1
SourceCodeUrl: https://github.com/DoubleML/doubleml-serverless

Globals:
Function:
Timeout: 180
Description: Distributed Double Machine Learning with a Serverless Architecture

Parameters:
CreateS3BucketForDataTransfer:
Expand Down
Empty file.
2 changes: 1 addition & 1 deletion doubleml_serverless/tests/test_iivm.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

import doubleml as dml
import doubleml_serverless as dml_lambda
from helper_local_lambda_calls import DoubleMLIIVMServerlessLocal

from doubleml_serverless.tests.helper_local_lambda_calls import DoubleMLIIVMServerlessLocal
from doubleml_serverless.tests.helper_general import get_n_datasets

# number of datasets per dgp
Expand Down
2 changes: 1 addition & 1 deletion doubleml_serverless/tests/test_irm.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

import doubleml as dml
import doubleml_serverless as dml_lambda
from helper_local_lambda_calls import DoubleMLIRMServerlessLocal

from doubleml_serverless.tests.helper_local_lambda_calls import DoubleMLIRMServerlessLocal
from doubleml_serverless.tests.helper_general import get_n_datasets

# number of datasets per dgp
Expand Down
2 changes: 1 addition & 1 deletion doubleml_serverless/tests/test_pliv.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

import doubleml as dml
import doubleml_serverless as dml_lambda
from helper_local_lambda_calls import DoubleMLPLIVServerlessLocal

from doubleml_serverless.tests.helper_local_lambda_calls import DoubleMLPLIVServerlessLocal
from doubleml_serverless.tests.helper_general import get_n_datasets

# number of datasets per dgp
Expand Down
2 changes: 1 addition & 1 deletion doubleml_serverless/tests/test_plr.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

import doubleml as dml
import doubleml_serverless as dml_lambda
from helper_local_lambda_calls import DoubleMLPLRServerlessLocal

from doubleml_serverless.tests.helper_local_lambda_calls import DoubleMLPLRServerlessLocal
from doubleml_serverless.tests.helper_general import get_n_datasets

# number of datasets per dgp
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
DoubleML
DoubleML>=0.1.2
joblib
numpy
pandas
scipy
sklearn
statsmodels
boto3==1.14.44
aiobotocore==1.1.2
boto3==1.14.44
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@
author='Kurz, M. S.',
maintainer='Malte S. Kurz',
maintainer_email='[email protected]',
description='Double Machine Learning with Serverless Scaling',
description='Distributed Double Machine Learning with a Serverless Architecture',
long_description=long_description,
long_description_content_type='text/markdown',
url='http://doubleml.org',
url='https://github.com/DoubleML/doubleml-serverless',
packages=find_packages(exclude=['aws_lambda_app*']),
install_requires=[
'DoubleML>=0.1.2',
'joblib',
'numpy',
'pandas',
Expand Down

0 comments on commit 53102ee

Please sign in to comment.