pip install --upgrade --force-reinstall -r requirements.txt
or ignore installed packages and install the new ones:
pip install --ignore-installed -r requirements.txt
| npm init -y | |
| pnpm install typescript @types/node --save-dev | |
| pnpm tsc --init --rootDir src --outDir build --lib es6 --noImplicitAny true --resolveJsonModule |
pip install --upgrade --force-reinstall -r requirements.txt
or ignore installed packages and install the new ones:
pip install --ignore-installed -r requirements.txt
| import re | |
| vocabulary = set(re.split('\W', text)) | |
| vocabulary.update(set(re.findall('\W', text))) | |
| embeddings = dict.fromkeys(vocabulary, []) | |
| print(f'Vocabulary size: {len(vocabulary)}') |
| ## E2E Testing | |
| - https://playwright.dev | |
| - https://www.cypress.io | |
| ## Performance Testing | |
| - https://gatling.io | |
| - https://www.artillery.io | |
| - https://k6.io | |
| ## Profiling |
| aws s3api list-object-versions --bucket ${BUCKET} --prefix ${FILE} --max-items ${MAX_ITEM} --no-cli-pager > versions | |
| cat versions | jq -r '.Versions[].VersionId' > versionids | |
| cat versions | jq -r '.Versions[] | "\(.LastModified) \(.VersionId)"' > lastmodified_versionids | |
| aws s3api get-object --bucket ${BUCKET} --key ${FILE} --version-id ${VERSION_ID} | |
| let "index = 1" | |
| while read version |
| # split numerical variables from categorical | |
| numerical = train.select_dtypes('number') | |
| categorical = train.select_dtypes(exclude='number') | |
| # split high cardinality categorical variables from the low cardinality ones | |
| hc_categorical = categorical[[col for col in categorical.columns if categorical[col].nunique() > 20]] | |
| lc_categorical = categorical[[col for col in categorical.columns if categorical[col].nunique() <= 20]] |
| class DataFrameSelector(BaseEstimator, TransformerMixin): | |
| def __init__(self, dtype=None, drop_columns=None): | |
| self.dtype = dtype | |
| self.columns = drop_columns | |
| def fit(self, X, y=None): | |
| return self | |
| def transform(self, X): |
Make sure you are on the main branch of your code repository and it is up to date
| import autoscaling = require('@aws-cdk/aws-autoscaling'); | |
| import ec2 = require('@aws-cdk/aws-ec2'); | |
| import elbv2 = require('@aws-cdk/aws-elasticloadbalancingv2'); | |
| import cdk = require('@aws-cdk/core'); | |
| export default class LoadBalancerStack extends cdk.Stack { | |
| constructor(app: cdk.App, id: string) { | |
| super(app, id); | |
| const vpc = new ec2.Vpc(this, 'VPC'); |
| { | |
| "presets": ["@babel/preset-env"] | |
| } |