Skip to content

Commit

Permalink
Upd
Browse files Browse the repository at this point in the history
  • Loading branch information
krasheninnikov committed Apr 22, 2024
1 parent c38a19c commit 1471633
Show file tree
Hide file tree
Showing 21 changed files with 24 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ numeric_experiment_arguments:
fn_input_len: 4
nfunc: 32
n_fns_to_lock: 16
n_fns_to_unlock: 1
n_fns_to_unlock: 16


# overrides specified parameters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ numeric_experiment_arguments:
fn_input_len: 4
nfunc: 32
n_fns_to_lock: 16
n_fns_to_unlock: 1
n_fns_to_unlock: 16


# overrides specified parameters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ numeric_experiment_arguments:
fn_input_len: 4
nfunc: 32
n_fns_to_lock: 16
n_fns_to_unlock: 1
n_fns_to_unlock: 16


# overrides specified parameters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ numeric_experiment_arguments:
fn_input_len: 4
nfunc: 32
n_fns_to_lock: 16
n_fns_to_unlock: 1
n_fns_to_unlock: 16


# overrides specified parameters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ numeric_experiment_arguments:
fn_input_len: 4
nfunc: 32
n_fns_to_lock: 16
n_fns_to_unlock: 1
n_fns_to_unlock: 16



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ numeric_experiment_arguments:
fn_input_len: 4
nfunc: 32
n_fns_to_lock: 16
n_fns_to_unlock: 1
n_fns_to_unlock: 16


# overrides specified parameters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ numeric_experiment_arguments:
fn_input_len: 4
nfunc: 32
n_fns_to_lock: 16
n_fns_to_unlock: 1
n_fns_to_unlock: 16



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ numeric_experiment_arguments:
fn_input_len: 4
nfunc: 32
n_fns_to_lock: 16
n_fns_to_unlock: 1
n_fns_to_unlock: 16


# overrides specified parameters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ numeric_experiment_arguments:
fn_input_len: 4
nfunc: 32
n_fns_to_lock: 16
n_fns_to_unlock: 1
n_fns_to_unlock: 16


# overrides specified parameters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ numeric_experiment_arguments:
fn_input_len: 4
nfunc: 32
n_fns_to_lock: 16
n_fns_to_unlock: 1
n_fns_to_unlock: 16


# overrides specified parameters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ numeric_experiment_arguments:
fn_input_len: 4
nfunc: 32
n_fns_to_lock: 16
n_fns_to_unlock: 1
n_fns_to_unlock: 16


# overrides specified parameters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ numeric_experiment_arguments:
fn_input_len: 4
nfunc: 32
n_fns_to_lock: 16
n_fns_to_unlock: 1
n_fns_to_unlock: 16


# overrides specified parameters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ numeric_experiment_arguments:
fn_input_len: 4
nfunc: 32
n_fns_to_lock: 16
n_fns_to_unlock: 1
n_fns_to_unlock: 16


# overrides specified parameters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ numeric_experiment_arguments:
fn_input_len: 4
nfunc: 32
n_fns_to_lock: 16
n_fns_to_unlock: 1
n_fns_to_unlock: 16


# overrides specified parameters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ numeric_experiment_arguments:
fn_input_len: 4
nfunc: 32
n_fns_to_lock: 16
n_fns_to_unlock: 1
n_fns_to_unlock: 16



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ numeric_experiment_arguments:
fn_input_len: 4
nfunc: 32
n_fns_to_lock: 16
n_fns_to_unlock: 1
n_fns_to_unlock: 16


# overrides specified parameters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ numeric_experiment_arguments:
fn_input_len: 4
nfunc: 32
n_fns_to_lock: 16
n_fns_to_unlock: 1
n_fns_to_unlock: 16



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ numeric_experiment_arguments:
fn_input_len: 4
nfunc: 32
n_fns_to_lock: 16
n_fns_to_unlock: 1
n_fns_to_unlock: 16


# overrides specified parameters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ numeric_experiment_arguments:
fn_input_len: 4
nfunc: 32
n_fns_to_lock: 16
n_fns_to_unlock: 1
n_fns_to_unlock: 16


# overrides specified parameters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ numeric_experiment_arguments:
fn_input_len: 4
nfunc: 32
n_fns_to_lock: 16
n_fns_to_unlock: 1
n_fns_to_unlock: 16


# overrides specified parameters
Expand Down
6 changes: 4 additions & 2 deletions data_generation/pwd_locked_composition.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,8 +366,10 @@ def accuracy(y_pred, y_true):
x = fn.fn1(x)
y_true = x
y_pred = [int(num) for num in chain_of_thought_without_input[-1].split()]
res['full_composition'] = accuracy(y_pred, y_true)

try:
res['full_composition'] = accuracy(y_pred, y_true)
except:
return res
return res


Expand Down

0 comments on commit 1471633

Please sign in to comment.