Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 42 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,16 +1,55 @@
# Ignore archive files
archive

# Ignore private key files
*.pem

# Ignore VSCode settings
.vscode

# Ignore Python bytecode files
*.pyc
__pycache__/

# Ignore output and input directories
outputs
inputs

# Ignore specific model files
model-user.json

# Ignore Jupyter Notebook checkpoints
.ipynb_checkpoints

# Ignore log files
*.log

# Ignore macOS system files
.DS_Store

# Ignore development directories
dev

# Ignore pickle and data files
*.pkl
*.dat
ab_testing_example/ml-1m
*/ml-1m
.env

# Ignore specific directories
mlruns
mlartifacts
ml-1m

# Ignore environment files
.env

# Ignore virtual environment directories
venv/
.env/
env/
ENV/
env.bak/
venv.bak/

# Ignore temporary files created by editors
*.swp
*~
4 changes: 3 additions & 1 deletion ab_testing_example_posthog/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
Flask==1.1.2
Flask==1.1.2
posthog
python-dotenv
68 changes: 0 additions & 68 deletions bigquery_example/bigquery_example.ipynb

This file was deleted.

3 changes: 0 additions & 3 deletions bigquery_example/requirements.txt

This file was deleted.

90 changes: 0 additions & 90 deletions kafka_client_example/Untitled.ipynb

This file was deleted.

21 changes: 21 additions & 0 deletions kafka_example/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
version: '3.8'

services:
zookeeper:
image: 'confluentinc/cp-zookeeper:latest'
Expand All @@ -6,6 +8,11 @@ services:
ZOOKEEPER_TICK_TIME: 2000
ports:
- "2181:2181"
networks:
- kafka-net
volumes:
- zookeeper_data:/var/lib/zookeeper/data
- zookeeper_log:/var/lib/zookeeper/log

kafka:
image: 'confluentinc/cp-kafka:latest'
Expand All @@ -16,5 +23,19 @@ services:
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://localhost:9092
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_LOG_DIRS: /var/lib/kafka/data
ports:
- "9092:9092"
networks:
- kafka-net
volumes:
- kafka_data:/var/lib/kafka/data

networks:
kafka-net:
driver: bridge

volumes:
zookeeper_data:
zookeeper_log:
kafka_data:
25 changes: 1 addition & 24 deletions kafka_example/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,30 +10,7 @@ Ensure you have the following installed on your machine:

## Setup Instructions

1. **Clone the repository** or create the following `docker-compose.yml` file in your project directory:

```yaml
services:
zookeeper:
image: 'confluentinc/cp-zookeeper:latest'
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
ports:
- "2181:2181"

kafka:
image: 'confluentinc/cp-kafka:latest'
depends_on:
- zookeeper
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://localhost:9092
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
ports:
- "9092:9092"
```
1. **Clone the repository** using git clone and navigate to kafka example directory.

2. **Start the Services**:

Expand Down
91 changes: 0 additions & 91 deletions model_example_recommendation_pytorch/recommend_pytorch_inf.py

This file was deleted.

Loading