Skip to content

Instantly share code, notes, and snippets.

View yanboyang713's full-sized avatar

Boyang Yan yanboyang713

View GitHub Profile
def objective(trial):
with mlflow.start_run(nested=True):
print ("start trial")
# Suggest hyperparameters
C = trial.suggest_float('C', 0.1, 10.0)
epsilon = trial.suggest_float('epsilon', 0.01, 1.0)
kernel = trial.suggest_categorical('kernel', ['linear', 'poly', 'rbf', 'sigmoid'])
# Split the data into features and target
X = data[['HTTP_reply_code', 'Bytes']]
```
root@server4:~# uname -a
Linux server4 6.5.11-7-pve #1 SMP PREEMPT_DYNAMIC PMX 6.5.11-7 (2023-12-05T09:44Z) x86_64 GNU/Linux
```
```
root@server4:~# nvidia-smi
Wed Dec 20 23:05:39 2023
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.129.03 Driver Version: 535.129.03 CUDA Version: N/A |
---- WGAN -----
MAX CLASS 4293
CLASS ID 1
Traceback (most recent call last):
File "/home/yanboyang713/Documents/new/SyntheticOversampling/./src/runner.py", line 788, in <module>
main(case_to_run, repeats=repeats ,rp_threshold=rp_threshold)
File "/home/yanboyang713/Documents/new/SyntheticOversampling/./src/runner.py", line 517, in main
rt, X_train_new, y_train_new = WGANOversampling(X_train=X_train_GAN,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/yanboyang713/Documents/new/SyntheticOversampling/src/WGAN.py", line 183, in WGANOversampling
File "/home/yanboyang713/Documents/SyntheticOversampling/src/WGAN.py", line 48, in train_step *
fake_data = gen(noise, training=True)
File "/home/yanboyang713/Documents/SyntheticOversampling/test/lib/python3.10/site-packages/keras/src/utils/traceback_utils.py", line 70, in error_handler **
raise e.with_traceback(filtered_tb) from None
File "/tmp/__autograph_generated_file6v04vxxq.py", line 10, in tf__call
x = ag__.converted_call(ag__.ld(self).input_layer, (ag__.ld(inputs),), None, fscope)
ValueError: Exception encountered when calling layer 'generator_1' (type Generator).
in user code: