-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
42 changed files
with
180 additions
and
59 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
AWS_ACCESS_KEY_ID=admin | ||
AWS_SECRET_ACCESS_KEY=sample_key | ||
AWS_REGION=us-east-1 | ||
AWS_BUCKET_NAME=mlflow | ||
MYSQL_DATABASE=mlflow | ||
MYSQL_USER=mlflow_user | ||
MYSQL_PASSWORD=mlflow_password | ||
MYSQL_ROOT_PASSWORD=toor | ||
MLFLOW_S3_ENDPOINT_URL=http://localhost:9000 | ||
MLFLOW_TRACKING_URI=http://localhost:5000 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.settings | ||
.vscode |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
version: "3.9" | ||
services: | ||
s3: | ||
image: minio/minio | ||
restart: unless-stopped | ||
ports: | ||
- "9000:9000" | ||
- "9001:9001" | ||
environment: | ||
- MINIO_ROOT_USER=${AWS_ACCESS_KEY_ID} | ||
- MINIO_ROOT_PASSWORD=${AWS_SECRET_ACCESS_KEY} | ||
command: server /data --console-address ":9001" | ||
networks: | ||
- internal | ||
- public | ||
volumes: | ||
- minio_volume:/data | ||
db: | ||
image: mysql/mysql-server:5.7.28 | ||
restart: unless-stopped | ||
container_name: mlflow_db | ||
expose: | ||
- "3306" | ||
environment: | ||
- MYSQL_DATABASE=${MYSQL_DATABASE} | ||
- MYSQL_USER=${MYSQL_USER} | ||
- MYSQL_PASSWORD=${MYSQL_PASSWORD} | ||
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD} | ||
volumes: | ||
- db_volume:/var/lib/mysql | ||
networks: | ||
- internal | ||
mlflow: | ||
container_name: tracker_mlflow | ||
image: tracker_ml | ||
restart: unless-stopped | ||
build: | ||
context: ./Dockerfile | ||
dockerfile: Dockerfile | ||
ports: | ||
- "5000:5000" | ||
environment: | ||
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID} | ||
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY} | ||
- AWS_DEFAULT_REGION=${AWS_REGION} | ||
- MLFLOW_S3_ENDPOINT_URL=http://s3:9000 | ||
networks: | ||
- public | ||
- internal | ||
entrypoint: Dockerfile server --backend-store-uri mysql+pymysql://${MYSQL_USER}:${MYSQL_PASSWORD}@db:3306/${MYSQL_DATABASE} --default-artifact-root s3://${AWS_BUCKET_NAME}/ --artifacts-destination s3://${AWS_BUCKET_NAME}/ -h 0.0.0.0 | ||
depends_on: | ||
wait-for-db: | ||
condition: service_completed_successfully | ||
create_s3_buckets: | ||
image: minio/mc | ||
depends_on: | ||
- "s3" | ||
entrypoint: > | ||
/bin/sh -c " | ||
until (/usr/bin/mc alias set minio http://s3:9000 '${AWS_ACCESS_KEY_ID}' '${AWS_SECRET_ACCESS_KEY}') do echo '...waiting...' && sleep 1; done; | ||
/usr/bin/mc mb minio/${AWS_BUCKET_NAME}; | ||
exit 0; | ||
" | ||
networks: | ||
- internal | ||
wait-for-db: | ||
image: atkrad/wait4x | ||
depends_on: | ||
- db | ||
command: tcp db:3306 -t 90s -i 250ms | ||
networks: | ||
- internal | ||
networks: | ||
internal: | ||
public: | ||
driver: bridge | ||
volumes: | ||
db_volume: | ||
minio_volume: |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
FROM airflow2/ariflow |
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
### Generative Adversarial Networks (GANS) | ||
|
||
### Introduction | ||
This supervised deep learning method is based on a generator feed forward neural network and a distributor. Formulated on ideas linked to game theory, it is meant to present to competing networks which will output a given probability using information derived from the data set. | ||
|
||
### Features of GANs | ||
- Two competing agents whose objectives is to work for opossing goals. | ||
- This implies each participating agent continues to come up with strategies to decieve one another | ||
- This method is associated with Game theoretic minimax methods. | ||
|
||
In order to understand the foundation, implementation and application of GANs, we provide a basic desciption of the model. Then provide concrete examples on how GANs can be applied to a real life problem. Before delving into these steps, we will like to describe a simple example of a typical scenario which can be used to replicate GANs models. | ||
|
||
### Example Description | ||
Consider a situation involving two agents in real life: a police officer and a criminal. As stated in the example here, if the criminal is a counterfeiter, and often tries to come up with ways to evade detection, the police officer will also come up with a much better way to provide security. |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
File renamed without changes.
File renamed without changes.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
## Concepts | ||
|
||
----------------------------------------------- | ||
We discuss the advent of transformers and their applications to training various machine learning problems. To begin, we highlight the steps and the evolution of prior deep learning architectures and their limitations in training. | ||
### Tools and Tech Stack | ||
- Python 3.10+ | ||
- Observation via Grafana (UI), Loki(logs), tempo(traces) and Prometheus (metrics). | ||
- Pytorch (for some examples) | ||
- Examples implemented using mlflow for monitoring and used in training pipelines. | ||
- TensorFlow - a library from training machine learning models | ||
- Flax is a flexible user experience library via JAX | ||
### Models | ||
The following models are implemented in this folder: | ||
|
||
### In the begining.. | ||
As we know, deep learning neural networks are known to exhibit universal approximation abilites in predicting or classifying problems. However, their limitations in translation tasks, image processing and similar problems have been widely encountered and discussed in literature. Hence, improvements on DNNs have resulted in other types of architectures. For instance, recurrent neural networks (RNNs) -- with a special case of Long Short Term Memory networks (LSTMs), convolutional neural networks (CNNs) and more. Even these architectures have shown remarkable results in translation tasks, image processing, segmentation, speech recognition tasks, they are limited in a number of applications. | ||
Language models represent supervised learning models used to train and develop text and document based learning. | ||
|
||
### Life before BERT | ||
- Bidirectional Encoder Representations from Transformers (BERT) | ||
- Use of machine language translation | ||
- Attention based models via the `Àttention is All you Need` paper | ||
### BERT Model | ||
- Based on introduction of optimal training to model | ||
|
||
### Life After BERT | ||
- Usage of `simplified` training architecture | ||
- Removed bottlenecks in training | ||
- Added more simplified attention based parts in training |
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
# Contents of the folder | ||
### Contents | ||
|
||
-------------------------- | ||
|
||
## Algorithms | ||
### Algorithms | ||
|
||
* Identify different data collection techniques | ||
* Data types, preparation and analysis. | ||
* Apply use cases to clustering, principal component analysis (PCA) etc. | ||
* Apply unsupervised learning algorithms to prepare different types of data sets prior to training. | ||
* Apply use cases to clustering, principal component analysis (PCA) | ||
* Introduce methods to deal with existing algorithms. | ||
* Apply unsupervised learning algorithms for the preparation of various data sets in different formats | ||
prior to training. | ||
|
||
### Machine Learning Folder | ||
### Main Tasks and implementation | ||
|
||
* Contains code, examples and explanations on how to apply different types of ML methods to several problems. |