Inder-26 commited on
Commit
add681a
·
1 Parent(s): fdafc3c

Restore history and apply final clean deployment

Browse files
Files changed (6) hide show
  1. .gitignore +3 -0
  2. Network_data/phisingData.csv +0 -0
  3. README.md +4 -4
  4. debug.txt +0 -0
  5. test.py +1 -1
  6. test_mongodb.py +0 -13
.gitignore CHANGED
@@ -212,3 +212,6 @@ final_model/
212
  deploy_stage/
213
  mlruns/
214
  Network_data/
 
 
 
 
212
  deploy_stage/
213
  mlruns/
214
  Network_data/
215
+
216
+ mlflow.db
217
+ *.db
Network_data/phisingData.csv DELETED
The diff for this file is too large to render. See raw diff
 
README.md CHANGED
@@ -161,10 +161,10 @@ Trains and tunes multiple models, selecting the best one based on F1-score/Accur
161
  4. **Set Environment Variables**
162
  Create a `.env` file with your credentials:
163
  ```env
164
- MONGO_DB_URL=mongodb+srv://<username>:<password>@cluster0.mongodb.net/?retryWrites=true&w=majority
165
- MLFLOW_TRACKING_URI=https://dagshub.com/<username>/NetworkSecurity.mlflow
166
- MLFLOW_TRACKING_USERNAME=<username>
167
- MLFLOW_TRACKING_PASSWORD=<password>
168
  ```
169
 
170
  ## 🚀 Usage
 
161
  4. **Set Environment Variables**
162
  Create a `.env` file with your credentials:
163
  ```env
164
+ MONGO_DB_URL=your_mongodb_url_here
165
+ MLFLOW_TRACKING_URI=https://dagshub.com/your_username/project.mlflow
166
+ MLFLOW_TRACKING_USERNAME=your_username
167
+ MLFLOW_TRACKING_PASSWORD=your_password
168
  ```
169
 
170
  ## 🚀 Usage
debug.txt ADDED
Binary file (24 Bytes). View file
 
test.py CHANGED
@@ -47,7 +47,7 @@ def test_single_prediction():
47
  "Domain_registeration_length": 1,
48
  "Favicon": 1,
49
  "port": 1,
50
- "HTTPS_token": 1,
51
  "Request_URL": 1,
52
  "URL_of_Anchor": 1,
53
  "Links_in_tags": 1,
 
47
  "Domain_registeration_length": 1,
48
  "Favicon": 1,
49
  "port": 1,
50
+ "HTTPS_token": 0,
51
  "Request_URL": 1,
52
  "URL_of_Anchor": 1,
53
  "Links_in_tags": 1,
test_mongodb.py DELETED
@@ -1,13 +0,0 @@
1
-
2
- from pymongo.mongo_client import MongoClient
3
-
4
- uri = "mongodb+srv://inder26112004_db_user:<db_password>@cluster0.bauklqw.mongodb.net/?appName=Cluster0"
5
- # Create a new client and connect to the server
6
- client = MongoClient(uri)
7
-
8
- # Send a ping to confirm a successful connection
9
- try:
10
- client.admin.command('ping')
11
- print("Pinged your deployment. You successfully connected to MongoDB!")
12
- except Exception as e:
13
- print(e)