Skip to content

171 upgrade tf 2190 #172

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 100 commits into from
Apr 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
100 commits
Select commit Hold shift + click to select a range
30164c7
Update automerge.yml
david-thrower Mar 22, 2025
8904966
Update automerge.yml
david-thrower Mar 22, 2025
c7e8b30
Update phishing_email_detection_gpt2.py
david-thrower Mar 22, 2025
b790e64
Update phishing_email_detection_gpt2.py
david-thrower Mar 22, 2025
15ec9c2
Update phishing_email_detection_gpt2.py
david-thrower Mar 22, 2025
0cfb488
Update phishing_email_detection_gpt2.py
david-thrower Mar 22, 2025
6f86959
Update phishing_email_detection_gpt2.py
david-thrower Mar 22, 2025
830a2dc
Update automerge.yml
david-thrower Mar 22, 2025
407f90c
Update phishing_email_detection_gpt2.py
david-thrower Mar 22, 2025
d5bdbce
Update phishing_email_detection_gpt2.py
david-thrower Mar 22, 2025
d8db0f1
Update phishing_email_detection_gpt2.py
david-thrower Mar 22, 2025
014b3c3
Update phishing_email_detection_gpt2.py
david-thrower Mar 22, 2025
0b67f88
Update phishing_email_detection_gpt2.py
david-thrower Mar 22, 2025
a480dfd
Update phishing_email_detection_gpt2.py
david-thrower Mar 22, 2025
0e72e61
Update phishing_email_detection_gpt2.py
david-thrower Mar 22, 2025
3cd5945
Update phishing_email_detection_gpt2.py
david-thrower Mar 23, 2025
6a9e88d
Update phishing_email_detection_gpt2.py
david-thrower Mar 23, 2025
f24a858
Update phishing_email_detection_gpt2.py
david-thrower Mar 23, 2025
4e15756
Update automerge.yml
david-thrower Mar 23, 2025
9a4db15
Update phishing_email_detection_gpt2.py
david-thrower Mar 25, 2025
59cfa23
Update phishing_email_detection_gpt2.py
david-thrower Mar 25, 2025
d928a54
Update phishing_email_detection_gpt2.py
david-thrower Mar 25, 2025
3c25a22
Update phishing_email_detection_gpt2.py
david-thrower Mar 25, 2025
88a1bd5
Update phishing_email_detection_gpt2.py
david-thrower Mar 26, 2025
42d9c4f
Update phishing_email_detection_gpt2.py
david-thrower Mar 26, 2025
ed4641e
Update phishing_email_detection_gpt2.py
david-thrower Mar 26, 2025
cdb4455
Update phishing_email_detection_gpt2.py
david-thrower Mar 26, 2025
048eb1b
Update phishing_email_detection_gpt2.py
david-thrower Mar 26, 2025
b800cf7
Update phishing_email_detection_gpt2.py
david-thrower Mar 27, 2025
7930a2d
Update automerge.yml
david-thrower Mar 27, 2025
e6ae27c
Update automerge.yml
david-thrower Mar 30, 2025
0eab09e
Update neural_network_future.py
david-thrower Mar 30, 2025
8939f3c
Update phishing_email_detection_gpt2.py
david-thrower Mar 30, 2025
966f714
Update phishing_email_detection_gpt2.py
david-thrower Apr 2, 2025
9724e9d
Update automerge.yml
david-thrower Apr 2, 2025
380928d
Update automerge.yml
david-thrower Apr 2, 2025
9323f5f
Update phishing_email_detection_gpt2.py
david-thrower Apr 2, 2025
f683fb8
Update phishing_email_detection_gpt2.py
david-thrower Apr 2, 2025
69d9d1d
Update requirements.txt
david-thrower Apr 3, 2025
ffb0e90
Update simple_cerebros_random_search.py
david-thrower Apr 3, 2025
9fafccc
Update automerge.yml
david-thrower Apr 3, 2025
aba7589
Update simple_cerebros_random_search.py
david-thrower Apr 3, 2025
f628498
Update simple_cerebros_random_search.py
david-thrower Apr 3, 2025
689f003
Update simple_cerebros_random_search.py
david-thrower Apr 3, 2025
40c3582
Update simple_cerebros_random_search.py
david-thrower Apr 3, 2025
642452f
Update simple_cerebros_random_search.py
david-thrower Apr 3, 2025
6f7c1f0
Update simple_cerebros_random_search.py
david-thrower Apr 3, 2025
713ac96
Update simple_cerebros_random_search.py
david-thrower Apr 3, 2025
7db4b15
Update phishing_email_detection_gpt2.py
david-thrower Apr 8, 2025
e3ad67d
Update automerge.yml
david-thrower Apr 8, 2025
2389efd
Update phishing_email_detection_gpt2.py
david-thrower Apr 8, 2025
3bd57f3
Update phishing_email_detection_gpt2.py
david-thrower Apr 8, 2025
f88afbd
Update phishing_email_detection_gpt2.py
david-thrower Apr 8, 2025
fec5b03
Update phishing_email_detection_gpt2.py
david-thrower Apr 8, 2025
5ca0ec7
Update automerge.yml
david-thrower Apr 8, 2025
4629394
Update phishing_email_detection_gpt2.py
david-thrower Apr 8, 2025
ee85cae
Update phishing_email_detection_gpt2.py
david-thrower Apr 9, 2025
51ee5e9
Update automerge.yml
david-thrower Apr 9, 2025
7e7cd36
Update phishing_email_detection_gpt2.py
david-thrower Apr 9, 2025
87270f8
Update phishing_email_detection_gpt2.py
david-thrower Apr 9, 2025
ccb19b1
Update phishing_email_detection_gpt2.py
david-thrower Apr 9, 2025
10a48c1
Update phishing_email_detection_gpt2.py
david-thrower Apr 9, 2025
b231398
Update phishing_email_detection_gpt2.py
david-thrower Apr 9, 2025
4368259
Update phishing_email_detection_gpt2.py
david-thrower Apr 9, 2025
5398ce7
Update phishing_email_detection_gpt2.py
david-thrower Apr 9, 2025
2aeba28
Update phishing_email_detection_gpt2.py
david-thrower Apr 9, 2025
4315c51
Update phishing_email_detection_gpt2.py
david-thrower Apr 9, 2025
d2d0f72
Update phishing_email_detection_gpt2.py
david-thrower Apr 9, 2025
432df19
Update phishing_email_detection_gpt2.py
david-thrower Apr 9, 2025
116b888
Update phishing_email_detection_gpt2.py
david-thrower Apr 9, 2025
b8204d6
Update phishing_email_detection_gpt2.py
david-thrower Apr 9, 2025
7a039dd
Update phishing_email_detection_gpt2.py
david-thrower Apr 9, 2025
5fa7a9d
Update cicd-requirements.txt
david-thrower Apr 9, 2025
096fa27
Update phishing_email_detection_gpt2.py
david-thrower Apr 9, 2025
6951f19
Update automerge.yml
david-thrower Apr 9, 2025
ebb22a7
Update phishing_email_detection_gpt2.py
david-thrower Apr 9, 2025
fdc4812
Update phishing_email_detection_gpt2.py
david-thrower Apr 9, 2025
7a38e20
Update phishing_email_detection_gpt2.py
david-thrower Apr 9, 2025
a7515be
Update phishing_email_detection_gpt2.py
david-thrower Apr 9, 2025
1dcc245
Update phishing_email_detection_gpt2.py
david-thrower Apr 9, 2025
5cf1434
Update phishing_email_detection_gpt2.py
david-thrower Apr 9, 2025
f229a47
Update phishing_email_detection_gpt2.py
david-thrower Apr 9, 2025
5ce1eb8
Update phishing_email_detection_gpt2.py
david-thrower Apr 9, 2025
dc4dcc6
Update phishing_email_detection_gpt2.py
david-thrower Apr 9, 2025
9893bfc
Update phishing_email_detection_gpt2.py
david-thrower Apr 10, 2025
286ba81
Update phishing_email_detection_gpt2.py
david-thrower Apr 10, 2025
6df20aa
Update phishing_email_detection_gpt2.py
david-thrower Apr 10, 2025
794fc23
Update automerge.yml
david-thrower Apr 10, 2025
3e467fe
Update requirements.txt
david-thrower Apr 10, 2025
96897ae
Update cicd-requirements.txt
david-thrower Apr 10, 2025
a66e6a6
Update automerge.yml
david-thrower Apr 10, 2025
5c58d65
Update requirements.txt
david-thrower Apr 10, 2025
2c417fb
Update phishing_email_detection_gpt2.py
david-thrower Apr 10, 2025
44854be
Update phishing_email_detection_gpt2.py
david-thrower Apr 10, 2025
f46ad78
Update phishing_email_detection_gpt2.py
david-thrower Apr 10, 2025
4806719
Update automerge.yml
david-thrower Apr 11, 2025
783368e
Update cifar10-example.py
david-thrower Apr 11, 2025
3b9ffc0
Update phishing_email_detection_gpt2.py
david-thrower Apr 11, 2025
97591d3
Update phishing_email_detection_gpt2.py
david-thrower Apr 11, 2025
1de46fc
Update automerge.yml
david-thrower Apr 11, 2025
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
21 changes: 6 additions & 15 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: Python application

on:
push:
branches: [ "main", "148-tensorflow-upgrades" ]
branches: [ "main", "171-upgrade-tf-2190" ]

permissions:
contents: read
Expand Down Expand Up @@ -33,25 +33,16 @@ jobs:
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
# - name: Test by running.
# run: python3 cerebros.py
# - name: Test distributed by running.
# run: python3 test_simple_cerebros_gridsearch.py
# - name: Test distributed random search wine by running.
# run: python3 random_search.py
# - name: Test CerebrosRealNeuronNetwork
# run: python3 realnn-regression-example-ames-no-preproc.py
# timeout-minutes: 45
- name: Test distributed random search Ames by running
run: python3 regression-example-ames-no-preproc.py
- name: Test distributed random search Ames by running - Val set
run: python3 regression-example-ames-no-preproc-val-set.py
- name: Test text classifier - random search - ham-spam
run: python3 text-class-ham-or-spam.py
timeout-minutes: 90
- name: Test image classifier - small subset of CIFAR10
# - name: Test text classifier - random search - ham-spam
# run: python3 text-class-ham-or-spam.py
# timeout-minutes: 90
- name: Test image classifier - small subset of CIFAR10 # add back
timeout-minutes: 90
run: python3 cifar10-example.py
- name: Phishing email detection with GPT2 embedding
timeout-minutes: 120
timeout-minutes: 420
run: python3 phishing_email_detection_gpt2.py
6 changes: 4 additions & 2 deletions cerebros/neuralnetworkfuture/neural_network_future.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,10 @@ def compile_neural_network(self):
self.materialized_neural_network.compile(
loss=self.loss,
metrics=self.metrics,
optimizer=tf.keras.optimizers.Adam(
learning_rate=self.learning_rate),
optimizer=tf.keras.optimizers.AdamW(
learning_rate=self.learning_rate,
weight_decay=0.004 # Add weight decay parameter
),
jit_compile=jit_compile)

def util_parse_connectivity_csv(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import numpy as np
import pandas as pd
import tensorflow as tf
from tqdm import tqdm
from cerebros.denseautomlstructuralcomponent.\
dense_automl_structural_component \
import DenseAutoMlStructuralComponent, DenseLateralConnectivity, \
Expand Down Expand Up @@ -519,7 +520,10 @@ def run_moity_permutations(self, spec, subtrial_number, lock):

def run_random_search(self):
processes = []
for i in np.arange(self.number_of_architecture_moities_to_try):
for i in tqdm(np.arange(self.number_of_architecture_moities_to_try),
desc="Global task progress",
colour="#16ceeb"):

self.parse_neural_network_structural_spec_random()
spec = self.get_neural_network_spec()

Expand Down
3 changes: 2 additions & 1 deletion cicd-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
matplotlib==3.8.4
tensorflow-text==2.15.0
tensorflow-text==2.19.0
keras-nlp==0.9.1
scikit-learn==1.4.1.post1
tensorflow-hub==0.16.1
transformers==4.51.1
4 changes: 2 additions & 2 deletions cifar10-example.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ def make_dataset(dataset):

last_relevant_layer = base_new.layers[-2]
# last_relevant_layer_extracted = last_relevant_layer #.output[0][0][0]
base_embedding = tf.keras.Model(inputs=base_new.layers[0].input,
outputs=last_relevant_layer.output)
base_embedding = tf.keras.Model(inputs=base_new.input,
outputs=last_relevant_layer.output)


image_input_0 = tf.keras.layers.Input(shape=INPUT_SHAPES[0])
Expand Down
Loading