ZivKassnerNK commited on
Commit
7651061
·
1 Parent(s): cd5f763

Add evaluation results and output files to model card

Browse files
README.md ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language: code
3
+ tags:
4
+ - binary-classification
5
+ - model
6
+ - evaluation
7
+ metrics:
8
+ - average_precision: 0.87
9
+ - roc_auc: 0.76
10
+ - best threshold according to F1: 0.13
11
+ ---
12
+
13
+ # Binary Classification Model
14
+
15
+ ## Evaluation Results
16
+
17
+ **Average Precision:** 0.87
18
+ **ROC AUC:** 0.76
19
+ **best threshold according to F1: 0.13
20
+
21
+
22
+ ## Visualizations
23
+
24
+ ### Precision-Recall Curve
25
+ ![Precision-Recall Curve](./pr_curve.png)
26
+
27
+ ### ROC Curve
28
+ ![ROC Curve](./roc_curve.png)
29
+
30
+ ## Output Files and Directories
31
+
32
+ - 📂 `checkpoint-171/`
33
+ - `config.json`
34
+ - `model.safetensors`
35
+ - `preprocessor_config.json`
36
+ - `training_args.bin`
checkpoint-5/config.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "GenetikaPlus/binary_classification_model_v3.1.3_junctions",
3
+ "architectures": [
4
+ "ViTForImageClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.0,
7
+ "encoder_stride": 16,
8
+ "hidden_act": "gelu",
9
+ "hidden_dropout_prob": 0.0,
10
+ "hidden_size": 256,
11
+ "image_size": 32,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 512,
14
+ "layer_norm_eps": 1e-12,
15
+ "model_type": "vit",
16
+ "num_attention_heads": 8,
17
+ "num_channels": 3,
18
+ "num_hidden_layers": 4,
19
+ "patch_size": 4,
20
+ "qkv_bias": true,
21
+ "torch_dtype": "float32",
22
+ "transformers_version": "4.46.2"
23
+ }
checkpoint-5/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:48002186acebeeeb33e3af1a8bebc5b1d4d0df3112d77550512519a7308c4818
3
+ size 8563512
checkpoint-5/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5144dc3dd856c4e7e36106223acaa0e865befdb2ea2634f21bac36c0107d5272
3
+ size 17171514
checkpoint-5/preprocessor_config.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_normalize": true,
3
+ "do_rescale": true,
4
+ "do_resize": false,
5
+ "image_mean": [
6
+ 0.5,
7
+ 0.5,
8
+ 0.5
9
+ ],
10
+ "image_processor_type": "ViTFeatureExtractor",
11
+ "image_std": [
12
+ 0.5,
13
+ 0.5,
14
+ 0.5
15
+ ],
16
+ "resample": 2,
17
+ "rescale_factor": 0.00392156862745098,
18
+ "size": {
19
+ "height": 32,
20
+ "width": 32
21
+ }
22
+ }
checkpoint-5/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d597f4639f06d24cbcf5d325c3651a1209adc9ae3f4c1030308b02b0ef8a723b
3
+ size 14244
checkpoint-5/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e5e2dd7b0b0aeae93e44a3701cca70fb38a7f111e82eb557413a5b28144c0332
3
+ size 1000
checkpoint-5/trainer_state.json ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.8960872354073124,
3
+ "best_model_checkpoint": "/tmp/logs/binary_classification_model_v3.1.5_junctions/checkpoint-5",
4
+ "epoch": 1.0,
5
+ "eval_steps": 500,
6
+ "global_step": 5,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 0.2,
13
+ "grad_norm": 1199763.125,
14
+ "learning_rate": 2.2614201718679333e-08,
15
+ "loss": 0.4418,
16
+ "step": 1
17
+ },
18
+ {
19
+ "epoch": 0.4,
20
+ "grad_norm": 1240740.375,
21
+ "learning_rate": 4.5228403437358665e-08,
22
+ "loss": 0.4503,
23
+ "step": 2
24
+ },
25
+ {
26
+ "epoch": 0.6,
27
+ "grad_norm": 1050989.0,
28
+ "learning_rate": 6.7842605156038e-08,
29
+ "loss": 0.4108,
30
+ "step": 3
31
+ },
32
+ {
33
+ "epoch": 0.8,
34
+ "grad_norm": 978190.3125,
35
+ "learning_rate": 9.045680687471733e-08,
36
+ "loss": 0.3993,
37
+ "step": 4
38
+ },
39
+ {
40
+ "epoch": 1.0,
41
+ "grad_norm": 1178755.875,
42
+ "learning_rate": 1.1307100859339666e-07,
43
+ "loss": 0.4085,
44
+ "step": 5
45
+ },
46
+ {
47
+ "epoch": 1.0,
48
+ "eval_accuracy": 0.8534599728629579,
49
+ "eval_f1": 0.8960872354073124,
50
+ "eval_loss": 0.42866843938827515,
51
+ "eval_precision": 0.8769617074701821,
52
+ "eval_recall": 0.9160655737704918,
53
+ "eval_runtime": 2.9509,
54
+ "eval_samples_per_second": 749.269,
55
+ "eval_steps_per_second": 0.678,
56
+ "step": 5
57
+ }
58
+ ],
59
+ "logging_steps": 1,
60
+ "max_steps": 250,
61
+ "num_input_tokens_seen": 0,
62
+ "num_train_epochs": 50,
63
+ "save_steps": 500,
64
+ "stateful_callbacks": {
65
+ "TrainerControl": {
66
+ "args": {
67
+ "should_epoch_stop": false,
68
+ "should_evaluate": false,
69
+ "should_log": false,
70
+ "should_save": true,
71
+ "should_training_stop": false
72
+ },
73
+ "attributes": {}
74
+ }
75
+ },
76
+ "total_flos": 348664733024256.0,
77
+ "train_batch_size": 2048,
78
+ "trial_name": null,
79
+ "trial_params": null
80
+ }
checkpoint-5/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:93b8983655cf890e6632b5e9d2cba79a24784e85badd01191abefd8dc24ef793
3
+ size 5368
config.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "GenetikaPlus/binary_classification_model_v3.1.3_junctions",
3
+ "architectures": [
4
+ "ViTForImageClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.0,
7
+ "encoder_stride": 16,
8
+ "hidden_act": "gelu",
9
+ "hidden_dropout_prob": 0.0,
10
+ "hidden_size": 256,
11
+ "image_size": 32,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 512,
14
+ "layer_norm_eps": 1e-12,
15
+ "model_type": "vit",
16
+ "num_attention_heads": 8,
17
+ "num_channels": 3,
18
+ "num_hidden_layers": 4,
19
+ "patch_size": 4,
20
+ "qkv_bias": true,
21
+ "torch_dtype": "float32",
22
+ "transformers_version": "4.46.2"
23
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:686976756f9cb128a41661bd80daea45d64527feb8db25f664f36f5f228ba273
3
+ size 8563512
pr_curve.png ADDED
preprocessor_config.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_normalize": true,
3
+ "do_rescale": true,
4
+ "do_resize": false,
5
+ "image_mean": [
6
+ 0.5,
7
+ 0.5,
8
+ 0.5
9
+ ],
10
+ "image_processor_type": "ViTFeatureExtractor",
11
+ "image_std": [
12
+ 0.5,
13
+ 0.5,
14
+ 0.5
15
+ ],
16
+ "resample": 2,
17
+ "rescale_factor": 0.00392156862745098,
18
+ "size": {
19
+ "height": 32,
20
+ "width": 32
21
+ }
22
+ }
roc_curve.png ADDED
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:93b8983655cf890e6632b5e9d2cba79a24784e85badd01191abefd8dc24ef793
3
+ size 5368