-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from se4ai2324-uniba/tools
Tools
- Loading branch information
Showing
33 changed files
with
157 additions
and
9 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
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
15 changes: 15 additions & 0 deletions
15
mlruns/573845569101247538/5d925ffaa68d403b94dc614c913fa5fb/meta.yaml
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,15 @@ | ||
artifact_uri: file:///D:\Ivan\Desktop\lanubile\MalURLs\mlruns/573845569101247538/5d925ffaa68d403b94dc614c913fa5fb/artifacts | ||
end_time: 1702399159339 | ||
entry_point_name: '' | ||
experiment_id: '573845569101247538' | ||
lifecycle_stage: active | ||
run_id: 5d925ffaa68d403b94dc614c913fa5fb | ||
run_name: delightful-mule-19 | ||
run_uuid: 5d925ffaa68d403b94dc614c913fa5fb | ||
source_name: '' | ||
source_type: 4 | ||
source_version: '' | ||
start_time: 1702399155566 | ||
status: 3 | ||
tags: [] | ||
user_id: 75897e6620fc552361f424ffc621ee0c6c55322f |
1 change: 1 addition & 0 deletions
1
mlruns/573845569101247538/5d925ffaa68d403b94dc614c913fa5fb/metrics/Weighted_avg_f1
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 @@ | ||
1702399159334 0.8967420943165961 0 |
1 change: 1 addition & 0 deletions
1
mlruns/573845569101247538/5d925ffaa68d403b94dc614c913fa5fb/metrics/Weighted_avg_precision
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 @@ | ||
1702399159334 0.8968715419097099 0 |
1 change: 1 addition & 0 deletions
1
mlruns/573845569101247538/5d925ffaa68d403b94dc614c913fa5fb/metrics/Weighted_avg_recall
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 @@ | ||
1702399159334 0.89675 0 |
1 change: 1 addition & 0 deletions
1
mlruns/573845569101247538/5d925ffaa68d403b94dc614c913fa5fb/metrics/accuracy
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 @@ | ||
1702399159334 0.89675 0 |
1 change: 1 addition & 0 deletions
1
mlruns/573845569101247538/5d925ffaa68d403b94dc614c913fa5fb/tags/mlflow.parentRunId
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 @@ | ||
be57f7deba8f4861a51c101064c1520c |
1 change: 1 addition & 0 deletions
1
mlruns/573845569101247538/5d925ffaa68d403b94dc614c913fa5fb/tags/mlflow.runName
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 @@ | ||
delightful-mule-19 |
1 change: 1 addition & 0 deletions
1
mlruns/573845569101247538/5d925ffaa68d403b94dc614c913fa5fb/tags/mlflow.source.git.commit
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 @@ | ||
972145f000b501ad23b8076920c6f87453208c71 |
1 change: 1 addition & 0 deletions
1
mlruns/573845569101247538/5d925ffaa68d403b94dc614c913fa5fb/tags/mlflow.source.name
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 @@ | ||
src/models/predict.py |
1 change: 1 addition & 0 deletions
1
mlruns/573845569101247538/5d925ffaa68d403b94dc614c913fa5fb/tags/mlflow.source.type
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 @@ | ||
LOCAL |
1 change: 1 addition & 0 deletions
1
mlruns/573845569101247538/5d925ffaa68d403b94dc614c913fa5fb/tags/mlflow.user
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 @@ | ||
75897e6620fc552361f424ffc621ee0c6c55322f |
1 change: 1 addition & 0 deletions
1
mlruns/573845569101247538/5d925ffaa68d403b94dc614c913fa5fb/tags/model_type
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 @@ | ||
random_forest_tuned_model |
15 changes: 15 additions & 0 deletions
15
mlruns/573845569101247538/be57f7deba8f4861a51c101064c1520c/meta.yaml
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,15 @@ | ||
artifact_uri: file:///D:\Ivan\Desktop\lanubile\MalURLs\mlruns/573845569101247538/be57f7deba8f4861a51c101064c1520c/artifacts | ||
end_time: 1702399159341 | ||
entry_point_name: '' | ||
experiment_id: '573845569101247538' | ||
lifecycle_stage: active | ||
run_id: be57f7deba8f4861a51c101064c1520c | ||
run_name: stylish-hog-713 | ||
run_uuid: be57f7deba8f4861a51c101064c1520c | ||
source_name: '' | ||
source_type: 4 | ||
source_version: '' | ||
start_time: 1702399155271 | ||
status: 3 | ||
tags: [] | ||
user_id: 75897e6620fc552361f424ffc621ee0c6c55322f |
1 change: 1 addition & 0 deletions
1
mlruns/573845569101247538/be57f7deba8f4861a51c101064c1520c/metrics/Weighted_avg_f1
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 @@ | ||
1702399155481 0.8929922686914129 0 |
1 change: 1 addition & 0 deletions
1
mlruns/573845569101247538/be57f7deba8f4861a51c101064c1520c/metrics/Weighted_avg_precision
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 @@ | ||
1702399155481 0.8931136098332417 0 |
1 change: 1 addition & 0 deletions
1
mlruns/573845569101247538/be57f7deba8f4861a51c101064c1520c/metrics/Weighted_avg_recall
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 @@ | ||
1702399155481 0.893 0 |
1 change: 1 addition & 0 deletions
1
mlruns/573845569101247538/be57f7deba8f4861a51c101064c1520c/metrics/accuracy
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 @@ | ||
1702399155481 0.893 0 |
1 change: 1 addition & 0 deletions
1
mlruns/573845569101247538/be57f7deba8f4861a51c101064c1520c/tags/mlflow.runName
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 @@ | ||
stylish-hog-713 |
1 change: 1 addition & 0 deletions
1
mlruns/573845569101247538/be57f7deba8f4861a51c101064c1520c/tags/mlflow.source.git.commit
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 @@ | ||
972145f000b501ad23b8076920c6f87453208c71 |
1 change: 1 addition & 0 deletions
1
mlruns/573845569101247538/be57f7deba8f4861a51c101064c1520c/tags/mlflow.source.name
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 @@ | ||
src/models/predict.py |
1 change: 1 addition & 0 deletions
1
mlruns/573845569101247538/be57f7deba8f4861a51c101064c1520c/tags/mlflow.source.type
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 @@ | ||
LOCAL |
1 change: 1 addition & 0 deletions
1
mlruns/573845569101247538/be57f7deba8f4861a51c101064c1520c/tags/mlflow.user
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 @@ | ||
75897e6620fc552361f424ffc621ee0c6c55322f |
1 change: 1 addition & 0 deletions
1
mlruns/573845569101247538/be57f7deba8f4861a51c101064c1520c/tags/model_type
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 @@ | ||
random_forest_base_model |
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 @@ | ||
aliases: [] | ||
creation_timestamp: 1702399155522 | ||
current_stage: None | ||
description: null | ||
last_updated_timestamp: 1702399155522 | ||
name: base_rf_model | ||
run_id: be57f7deba8f4861a51c101064c1520c | ||
run_link: null | ||
source: file:///D:\Ivan\Desktop\lanubile\MalURLs\mlruns/573845569101247538/be57f7deba8f4861a51c101064c1520c/artifacts/models | ||
status: READY | ||
status_message: null | ||
storage_location: file:///D:\Ivan\Desktop\lanubile\MalURLs\mlruns/573845569101247538/be57f7deba8f4861a51c101064c1520c/artifacts/models | ||
user_id: null | ||
version: 19 |
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,5 +1,4 @@ | ||
aliases: {} | ||
creation_timestamp: 1702729804102 | ||
description: null | ||
last_updated_timestamp: 1702729804118 | ||
last_updated_timestamp: 1702399159298 | ||
name: tuned_rf_model |
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 @@ | ||
aliases: [] | ||
creation_timestamp: 1702399159298 | ||
current_stage: None | ||
description: null | ||
last_updated_timestamp: 1702399159298 | ||
name: tuned_rf_model | ||
run_id: 5d925ffaa68d403b94dc614c913fa5fb | ||
run_link: null | ||
source: file:///D:\Ivan\Desktop\lanubile\MalURLs\mlruns/573845569101247538/5d925ffaa68d403b94dc614c913fa5fb/artifacts/models | ||
status: READY | ||
status_message: null | ||
storage_location: file:///D:\Ivan\Desktop\lanubile\MalURLs\mlruns/573845569101247538/5d925ffaa68d403b94dc614c913fa5fb/artifacts/models | ||
user_id: null | ||
version: 19 |
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 |
---|---|---|
|
@@ -5,8 +5,8 @@ | |
189 | ||
], | ||
[ | ||
223, | ||
1777 | ||
224, | ||
1776 | ||
] | ||
] | ||
} |
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,22 @@ | ||
import time | ||
from locust import HttpUser, task, between | ||
|
||
class TestUser(HttpUser): | ||
wait_time = between(1, 5) | ||
|
||
@task | ||
def get_features(self): | ||
self.client.post('/get_features', json={"url":"www.google.it"}, name="Get Features") | ||
'''x = self.client.post('/get_features', json={"url":"www.google.it"}) | ||
y = x.json() | ||
print(y)''' | ||
|
||
@task | ||
def get_models(self): | ||
self.client.get('/models', name="Get Models") | ||
|
||
@task | ||
def scan(self): | ||
self.client.post('/scan', json={"url":"www.google.it","model":"base_rf"}, name="Scan") | ||
|
||
|
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 @@ | ||
FROM prom/prometheus | ||
ADD prometheus.yml /etc/prometheus/ |
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,32 @@ | ||
# my global config | ||
global: | ||
scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute. | ||
evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute. | ||
# scrape_timeout is set to the global default (10s). | ||
|
||
# Alertmanager configuration | ||
alerting: | ||
alertmanagers: | ||
- static_configs: | ||
- targets: | ||
# - alertmanager:9093 | ||
|
||
# Load rules once and periodically evaluate them according to the global 'evaluation_interval'. | ||
rule_files: | ||
# - "first_rules.yml" | ||
# - "second_rules.yml" | ||
|
||
# A scrape configuration containing exactly one endpoint to scrape: | ||
# Here it's Prometheus itself. | ||
scrape_configs: | ||
# The job name is added as a label `job=<job_name>` to any timeseries scraped from this config. | ||
- job_name: "prometheus" | ||
|
||
# metrics_path defaults to '/metrics' | ||
# scheme defaults to 'http'. | ||
|
||
static_configs: | ||
- targets: ["localhost:9090"] | ||
- job_name: "docker" | ||
static_configs: | ||
- targets: ["host.docker.internal:9323"] |