From 79f806d3fd9f74b0e1d7981875fd4525c273436a Mon Sep 17 00:00:00 2001 From: Simon Strandgaard Date: Mon, 27 Nov 2023 18:58:33 +0100 Subject: [PATCH 01/16] SolveOneColor is zero none of the tasks in the hidden ARC dataset. Tweaking guesses. --- .../loda-rust-cli/src/arc/solve_one_color.rs | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/rust_project/loda-rust-cli/src/arc/solve_one_color.rs b/rust_project/loda-rust-cli/src/arc/solve_one_color.rs index e1f3b537..f9772e2c 100644 --- a/rust_project/loda-rust-cli/src/arc/solve_one_color.rs +++ b/rust_project/loda-rust-cli/src/arc/solve_one_color.rs @@ -6,10 +6,7 @@ //! 1190e5a7, 1a2e2828, 239be575, 23b5c85d, 27a28665, 3194b014, 445eab21, 44f52bb0, 5582e5ca, 642d658d, //! 7039b2d7, 8597cfd7, b9b7f026, d631b094, d9fac9be, de1cd16c, e872b94a, //! -//! This solver is able to solve 14 of the 17 tasks. -//! Where 9 is solved with some confidence. -//! Where 5 of them is solved as a happy accident. -//! Where 3 tasks is not solved 1a2e2828, 27a28665, b9b7f026, because it has more than 4 colors to choose from, and chooses the wrong color. +//! Out of the 800 tasks, this solver is able to solve between 13 tasks. //! //! Weakness: //! When there are 4 or more colors to choose from, then it doesn't do any prediction, and takes the 3 first colors. @@ -499,8 +496,12 @@ impl SolveOneColor { bail!("Unable to make prediction for task: {} - test_index: {} there are no available colors", task.id, test_index); } + let mut available_colors_vec: Vec = available_colors.color_vec(); + // The reversal is in order to try out if the last colors are better than the first colors. + // In the real world the algorithm should determine which colors are the best. + available_colors_vec.reverse(); let mut the_colors: Vec = primary_color_predictions.color_vec(); - the_colors.extend(available_colors.color_vec()); + the_colors.extend(available_colors_vec); let high_confidence: bool = primary_count > 0 && primary_count <= 3; if high_confidence { @@ -516,8 +517,8 @@ impl SolveOneColor { // Rule out the noise color, grid color, most dense colors. debug!("low confidence: task: {} - test_index: {} - available_colors: {:?}", task.id, test_index, the_colors); // Taking the initial 3 colors doesn't solve any of the hidden ARC tasks. - // Here is a crappy 2nd guess. By reversing the_colors. - the_colors.reverse(); + // Taking the last 3 colors doesn't solve any of the hidden ARC tasks. + // I doubt there are any of the hidden ARC tasks that outputs a single color. the_colors.truncate(3); } } From f01bbb884c6e6d7419c95ccdd7b135ccdb315a19 Mon Sep 17 00:00:00 2001 From: Simon Strandgaard Date: Mon, 27 Nov 2023 21:43:14 +0100 Subject: [PATCH 02/16] ConceptARC: Flipping random features so it solves 8 task fully and 23 tasks partially. --- .../loda-rust-cli/src/arc/solve_logisticregression.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/rust_project/loda-rust-cli/src/arc/solve_logisticregression.rs b/rust_project/loda-rust-cli/src/arc/solve_logisticregression.rs index 4eb798eb..43e49fc1 100644 --- a/rust_project/loda-rust-cli/src/arc/solve_logisticregression.rs +++ b/rust_project/loda-rust-cli/src/arc/solve_logisticregression.rs @@ -948,7 +948,7 @@ impl SolveLogisticRegression { - let enable_serialize_color_complex: bool = [true, true, false][v]; + let enable_serialize_color_complex: bool = [true, false, false][v]; let enable_serialize_cluster_id_shakeup: bool = [false, true, true][v]; let enable_total_clustercount: bool = [false, false, false][v]; let enable_color_clustercount: bool = [false, false, true][v]; @@ -957,13 +957,13 @@ impl SolveLogisticRegression { let enable_normalized_coordinates_context_input_size: bool = false; let enable_normalized_coordinates_context_output_size: bool = false; - let enable_output_orientation: bool = has_different_size_for_input_output; + let enable_output_orientation: bool = [has_different_size_for_input_output, false, false][v]; let enable_coordinates_xy: bool = [false, false, false][v]; let enable_coordinates_xy_reverse_input: bool = [false, false, false][v]; let enable_coordinates_xy_reverse_output: bool = false; let enable_is_outside: bool = has_different_size_for_input_output; - let enable_distance: bool = [!has_different_size_for_input_output, false, !has_different_size_for_input_output][v]; - let enable_diagonalhistogram_opposites: bool = has_different_size_for_input_output; + let enable_distance: bool = [!has_different_size_for_input_output, true, !has_different_size_for_input_output][v]; + let enable_diagonalhistogram_opposites: bool = [has_different_size_for_input_output, false, false][v]; let enable_diagonalhistogram: bool = false; let enable_histogram_diagonal_a: bool = [false, false, true][v]; @@ -973,7 +973,7 @@ impl SolveLogisticRegression { let enable_histogram_diagonal_e: bool = [false, false, false][v]; let enable_histogram_diagonal_f: bool = [false, false, false][v]; - let enable_center_indicator_a: bool = false; + let enable_center_indicator_a: bool = [false, true, false][v]; let enable_center_indicator_x: bool = [false, true, false][v]; let enable_center_indicator_y: bool = [false, true, false][v]; let enable_center_indicator: bool = enable_center_indicator_a || enable_center_indicator_x || enable_center_indicator_y; From c82de06a99db35b4ad408c37820f9eeaace488f9 Mon Sep 17 00:00:00 2001 From: Simon Strandgaard Date: Mon, 27 Nov 2023 22:05:59 +0100 Subject: [PATCH 03/16] ConceptARC: Flipping random features so it solves 8 task fully and 24 tasks partially. --- .../loda-rust-cli/src/arc/solve_logisticregression.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rust_project/loda-rust-cli/src/arc/solve_logisticregression.rs b/rust_project/loda-rust-cli/src/arc/solve_logisticregression.rs index 43e49fc1..3d26eb53 100644 --- a/rust_project/loda-rust-cli/src/arc/solve_logisticregression.rs +++ b/rust_project/loda-rust-cli/src/arc/solve_logisticregression.rs @@ -992,13 +992,13 @@ impl SolveLogisticRegression { let enable_mod3_reverse_input: bool = [false, false, false][v]; let enable_mod3_reverse_output: bool = [false, false, false][v]; - let enable_hole_type1_center: bool = [true, true, false][v]; - let enable_hole_type1_all_colors: bool = [false, true, false][v]; + let enable_hole_type1_center: bool = [true, false, false][v]; + let enable_hole_type1_all_colors: bool = [false, false, false][v]; let enable_color_repair: bool = [true, false, false][v]; let enable_shape_transformation_images: bool = [false, true, false][v]; - let enable_noisecolor_in_outline: bool = [true, true, false][v]; - let enable_grid: bool = true; + let enable_noisecolor_in_outline: bool = [true, false, false][v]; + let enable_grid: bool = [true, false, false][v]; let enable_enumerated_clusters_grow_mask3: bool = [false, true, true][v]; let enable_color_grow_mask1: bool = [false, false, true][v]; From 2d2116c406d2cfa6970ec75f336cc76ea7ee8487 Mon Sep 17 00:00:00 2001 From: Simon Strandgaard Date: Mon, 27 Nov 2023 22:21:04 +0100 Subject: [PATCH 04/16] ConceptARC: Flipping random features so it solves 8 task fully and 27 tasks partially. --- .../loda-rust-cli/src/arc/solve_logisticregression.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/rust_project/loda-rust-cli/src/arc/solve_logisticregression.rs b/rust_project/loda-rust-cli/src/arc/solve_logisticregression.rs index 3d26eb53..caec195f 100644 --- a/rust_project/loda-rust-cli/src/arc/solve_logisticregression.rs +++ b/rust_project/loda-rust-cli/src/arc/solve_logisticregression.rs @@ -1000,13 +1000,13 @@ impl SolveLogisticRegression { let enable_noisecolor_in_outline: bool = [true, false, false][v]; let enable_grid: bool = [true, false, false][v]; - let enable_enumerated_clusters_grow_mask3: bool = [false, true, true][v]; - let enable_color_grow_mask1: bool = [false, false, true][v]; - let enable_color_grow_mask2: bool = [false, false, true][v]; - let enable_color_grow_mask3: bool = [false, false, true][v]; + let enable_enumerated_clusters_grow_mask3: bool = [false, false, true][v]; + let enable_color_grow_mask1: bool = [false, true, true][v]; + let enable_color_grow_mask2: bool = [false, true, true][v]; + let enable_color_grow_mask3: bool = [false, true, true][v]; let enable_no_change_to_color: bool = true; - let enable_no_change_to_center_color: bool = false; + let enable_no_change_to_center_color: bool = [false, true, false][v]; let enable_no_change_to_noise_color: bool = [false, false, false][v]; let enable_object_center_same_as_neighbour: bool = [false, false, false][v]; let enable_edge: bool = [false, false, false][v]; From 4655b7ec5e891b706ae81d15a1b73b1c81d5236e Mon Sep 17 00:00:00 2001 From: Simon Strandgaard Date: Mon, 27 Nov 2023 22:35:00 +0100 Subject: [PATCH 05/16] ConceptARC: Flipping random features so it solves 8 task fully and 28 tasks partially. --- rust_project/loda-rust-cli/src/arc/solve_logisticregression.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust_project/loda-rust-cli/src/arc/solve_logisticregression.rs b/rust_project/loda-rust-cli/src/arc/solve_logisticregression.rs index caec195f..df7109f9 100644 --- a/rust_project/loda-rust-cli/src/arc/solve_logisticregression.rs +++ b/rust_project/loda-rust-cli/src/arc/solve_logisticregression.rs @@ -1012,7 +1012,7 @@ impl SolveLogisticRegression { let enable_edge: bool = [false, false, false][v]; let enable_color_inside_bounding_box: bool = [true, true, true][v]; - let enable_object_id_image_connectivity4: bool = [false, true, false][v]; + let enable_object_id_image_connectivity4: bool = [false, false, false][v]; let enable_object_id_image_connectivity8: bool = [false, false, false][v]; let enable_trigram_count_center: bool = [false, false, true][v]; From 865dd7ae9562ea5685cf04a0940049574adc5829 Mon Sep 17 00:00:00 2001 From: Simon Strandgaard Date: Mon, 27 Nov 2023 22:41:04 +0100 Subject: [PATCH 06/16] ConceptARC: Flipping random features so it solves 9 task fully and 25 tasks partially. --- rust_project/loda-rust-cli/src/arc/solve_logisticregression.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust_project/loda-rust-cli/src/arc/solve_logisticregression.rs b/rust_project/loda-rust-cli/src/arc/solve_logisticregression.rs index df7109f9..2eb47fab 100644 --- a/rust_project/loda-rust-cli/src/arc/solve_logisticregression.rs +++ b/rust_project/loda-rust-cli/src/arc/solve_logisticregression.rs @@ -1015,7 +1015,7 @@ impl SolveLogisticRegression { let enable_object_id_image_connectivity4: bool = [false, false, false][v]; let enable_object_id_image_connectivity8: bool = [false, false, false][v]; - let enable_trigram_count_center: bool = [false, false, true][v]; + let enable_trigram_count_center: bool = [false, true, true][v]; let enable_trigram_count_word1_center: bool = [false, false, true][v]; let enable_trigram_count_word012_center: bool = [false, false, true][v]; From ec1bb11bd56c0117b12e898526b2f9bf572e14bf Mon Sep 17 00:00:00 2001 From: Simon Strandgaard Date: Mon, 27 Nov 2023 23:04:55 +0100 Subject: [PATCH 07/16] ConceptARC: Flipping random features so it solves 11 task fully and 24 tasks partially. --- .../src/arc/solve_logisticregression.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/rust_project/loda-rust-cli/src/arc/solve_logisticregression.rs b/rust_project/loda-rust-cli/src/arc/solve_logisticregression.rs index 2eb47fab..8a69c251 100644 --- a/rust_project/loda-rust-cli/src/arc/solve_logisticregression.rs +++ b/rust_project/loda-rust-cli/src/arc/solve_logisticregression.rs @@ -1016,12 +1016,12 @@ impl SolveLogisticRegression { let enable_object_id_image_connectivity8: bool = [false, false, false][v]; let enable_trigram_count_center: bool = [false, true, true][v]; - let enable_trigram_count_word1_center: bool = [false, false, true][v]; - let enable_trigram_count_word012_center: bool = [false, false, true][v]; + let enable_trigram_count_word1_center: bool = [false, true, true][v]; + let enable_trigram_count_word012_center: bool = [false, true, true][v]; - let enable_full_row_and_column: bool = [true, true, false][v]; - let enable_full_row_xor_column: bool = [true, true, false][v]; - let enable_full_row_or_column: bool = [true, true, false][v]; + let enable_full_row_and_column: bool = [true, false, false][v]; + let enable_full_row_xor_column: bool = [true, false, false][v]; + let enable_full_row_or_column: bool = [true, false, false][v]; let enable_full_row: bool = [false, false, false][v]; let enable_full_column: bool = [false, false, false][v]; @@ -1030,7 +1030,7 @@ impl SolveLogisticRegression { let enable_corner_classification: bool = false; let enable_histogram_columns_rows_get_color: bool = [true, true, true][v]; - let enable_histogram_columns_rows_lookaround: bool = [false, false, true][v]; + let enable_histogram_columns_rows_lookaround: bool = [false, true, true][v]; let enable_exterior_of_clusters: bool = [false, false, true][v]; let enable_largest_interior_rectangle_masks: bool = [false, false, false][v]; From 1cf1e5569448aba10be204c2583bd770ac9812bc Mon Sep 17 00:00:00 2001 From: Simon Strandgaard Date: Mon, 27 Nov 2023 23:52:42 +0100 Subject: [PATCH 08/16] ConceptARC: Flipping random features so it solves 11 task fully and 25 tasks partially. --- .../src/arc/solve_logisticregression.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/rust_project/loda-rust-cli/src/arc/solve_logisticregression.rs b/rust_project/loda-rust-cli/src/arc/solve_logisticregression.rs index 8a69c251..9997d680 100644 --- a/rust_project/loda-rust-cli/src/arc/solve_logisticregression.rs +++ b/rust_project/loda-rust-cli/src/arc/solve_logisticregression.rs @@ -1037,27 +1037,27 @@ impl SolveLogisticRegression { let enable_relative_position_topleft_xy: bool = false; let enable_relative_position_checkerboard: bool = false; - let enable_scale_widthheight: bool = has_different_size_for_input_output; + let enable_scale_widthheight: bool = [has_different_size_for_input_output, false, false][v]; let enable_check_pixel_in_histogram: bool = [false, false, false][v]; - let enable_nearest_color: bool = [false, false, false][v]; + let enable_nearest_color: bool = [false, true, false][v]; let enable_colordirection_to_distanceimage: bool = [false, false, true][v]; let enable_neighbour_color: bool = [false, false, false][v]; let enable_adjacent_neighbour_same_as_center: bool = false; let enable_opposite_neighbour: bool = [false, true, false][v]; - let enable_removal_color_center: bool = [false, true, false][v]; + let enable_removal_color_center: bool = [false, false, false][v]; let enable_detect_nonsquare: bool = false; let enable_typo_for_center_row_right_columns: bool = [!has_different_size_for_input_output, false, false][v]; - let enable_denoise_type5_input: bool = [false, false, true][v]; + let enable_denoise_type5_input: bool = [false, true, true][v]; let enable_denoise_type5_output: bool = [false, false, false][v]; let enable_same_colors_for_area3x3_and_area5x5: bool = [false, false, false][v]; let enable_area3x3_input_8bit_mask: bool = [false, false, false][v]; let enable_area3x3_output_8bit_mask: bool = [false, false, false][v]; - let enable_gameoflife: bool = [false, false, false][v]; - let enable_nonbackground_different_than_most_popular_color: bool = false; + let enable_gameoflife: bool = [false, true, false][v]; + let enable_nonbackground_different_than_most_popular_color: bool = [false, true, false][v]; let enable_shape3x3_with_trim: bool = [true, false, false][v]; let enable_shape3x3_with_area5x5: bool = [false, true, true][v]; - let enable_shape3x3_input: bool = [true, true, true][v]; + let enable_shape3x3_input: bool = [true, false, true][v]; let enable_shape3x3_input_nonbackground: bool = [false, true, true][v]; let enable_shape3x3_output: bool = [false, true, true][v]; let enable_shape3x3_with_different_than_input_most_popular_color: bool = [false, true, true][v]; From 45debd53e662745a1d5621a379f9baf4bca8bff0 Mon Sep 17 00:00:00 2001 From: Simon Strandgaard Date: Tue, 28 Nov 2023 00:57:35 +0100 Subject: [PATCH 09/16] ConceptARC: Flipping random features so it solves 11 task fully and 25 tasks partially. --- .../src/arc/solve_logisticregression.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/rust_project/loda-rust-cli/src/arc/solve_logisticregression.rs b/rust_project/loda-rust-cli/src/arc/solve_logisticregression.rs index 9997d680..73be5903 100644 --- a/rust_project/loda-rust-cli/src/arc/solve_logisticregression.rs +++ b/rust_project/loda-rust-cli/src/arc/solve_logisticregression.rs @@ -1062,7 +1062,7 @@ impl SolveLogisticRegression { let enable_shape3x3_output: bool = [false, true, true][v]; let enable_shape3x3_with_different_than_input_most_popular_color: bool = [false, true, true][v]; - let enable_shape_type_image_connectivity4: bool = true; + let enable_shape_type_image_connectivity4: bool = [true, false, true][v]; let enable_shape_type_image_connectivity8: bool = true; let enable_shape_type45_image_connectivity4: bool = true; let enable_shape_type45_image_connectivity8: bool = true; @@ -1072,20 +1072,20 @@ impl SolveLogisticRegression { let enable_shape_size_connectivity8: bool = true; let enable_earlier_prediction_shapetype_connectivity4: bool = true; let enable_earlier_prediction_shapetype45_connectivity4: bool = true; - let enable_earlier_prediction_shapetype_connectivity8: bool = false; + let enable_earlier_prediction_shapetype_connectivity8: bool = [true, false, true][v]; let enable_earlier_prediction_shapetype45_connectivity8: bool = false; let enable_histogram_column_row_count: bool = false; let enable_cluster_distance1_all_colors: bool = [false, false, false][v]; let enable_cluster_distance2_all_colors: bool = [false, false, true][v]; - let enable_min_inbetween_max_inside_shape_connectivity4: bool = [false, false, false][v]; + let enable_min_inbetween_max_inside_shape_connectivity4: bool = [false, true, false][v]; let enable_earlier_prediction_mass_connectivity4: bool = false; let enable_earlier_prediction_mass_connectivity8: bool = false; let enable_change_happens_to_single_line: bool = [false, true, true][v]; let enable_change_happens_to_single_line_row_or_column: bool = [false, true, true][v]; let enable_change_happens_to_single_line_diagonal: bool = [false, true, true][v]; let enable_change_happens_to_single_line_some_diagonal: bool = [false, true, true][v]; - let enable_change_happens_to_single_line_any_45degree_angle: bool = [false, true, true][v]; + let enable_change_happens_to_single_line_any_45degree_angle: bool = [false, false, true][v]; let enable_nochange_happens_to_single_line: bool = [false, true, true][v]; let enable_nochange_happens_to_single_line_row_or_column: bool = [false, true, true][v]; let enable_nochange_happens_to_single_line_diagonal: bool = [false, true, true][v]; @@ -1093,10 +1093,10 @@ impl SolveLogisticRegression { let enable_nochange_happens_to_single_line_any_45degree_angle: bool = [false, true, true][v]; let enable_landmark_single_pixel: bool = [false, true, true][v]; let enable_density_of_input: bool = [false, true, true][v]; - let enable_density_of_shapetype90: bool = [false, true, true][v]; + let enable_density_of_shapetype90: bool = [false, false, true][v]; let enable_density_of_shapetype45: bool = [false, true, true][v]; let enable_density_of_object_id: bool = [false, true, true][v]; - let enable_density_any_direction_of_denoise_type5_input: bool = [false, true, true][v]; + let enable_density_any_direction_of_denoise_type5_input: bool = [false, false, true][v]; let enable_mostleast_popular_in_column: bool = [false, false, false][v]; let enable_mostleast_popular_in_row: bool = [false, false, false][v]; From e98237f76572b7ee0c6c7da1be653d08b6a29a77 Mon Sep 17 00:00:00 2001 From: Simon Strandgaard Date: Tue, 28 Nov 2023 01:09:25 +0100 Subject: [PATCH 10/16] Mini-ARC: Flipping random features so it solves 22 task fully and 0 tasks partially. --- .../loda-rust-cli/src/arc/solve_logisticregression.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rust_project/loda-rust-cli/src/arc/solve_logisticregression.rs b/rust_project/loda-rust-cli/src/arc/solve_logisticregression.rs index 73be5903..d1a8196a 100644 --- a/rust_project/loda-rust-cli/src/arc/solve_logisticregression.rs +++ b/rust_project/loda-rust-cli/src/arc/solve_logisticregression.rs @@ -950,11 +950,11 @@ impl SolveLogisticRegression { let enable_serialize_color_complex: bool = [true, false, false][v]; let enable_serialize_cluster_id_shakeup: bool = [false, true, true][v]; - let enable_total_clustercount: bool = [false, false, false][v]; + let enable_total_clustercount: bool = [false, false, true][v]; let enable_color_clustercount: bool = [false, false, true][v]; let enable_half_context_input_size: bool = [true, false, true][v]; let enable_half_context_output_size: bool = [false, false, false][v]; - let enable_normalized_coordinates_context_input_size: bool = false; + let enable_normalized_coordinates_context_input_size: bool = [false, false, true][v]; let enable_normalized_coordinates_context_output_size: bool = false; let enable_output_orientation: bool = [has_different_size_for_input_output, false, false][v]; @@ -966,8 +966,8 @@ impl SolveLogisticRegression { let enable_diagonalhistogram_opposites: bool = [has_different_size_for_input_output, false, false][v]; let enable_diagonalhistogram: bool = false; - let enable_histogram_diagonal_a: bool = [false, false, true][v]; - let enable_histogram_diagonal_b: bool = [false, false, true][v]; + let enable_histogram_diagonal_a: bool = [false, false, false][v]; + let enable_histogram_diagonal_b: bool = [false, false, false][v]; let enable_histogram_diagonal_c: bool = [false, true, false][v]; let enable_histogram_diagonal_d: bool = [false, true, false][v]; let enable_histogram_diagonal_e: bool = [false, false, false][v]; From 2dbc748b53cad3db85db69651ed9a56f6192a739 Mon Sep 17 00:00:00 2001 From: Simon Strandgaard Date: Tue, 28 Nov 2023 01:11:46 +0100 Subject: [PATCH 11/16] Mini-ARC: Flipping random features so it solves 24 task fully and 0 tasks partially. --- .../src/arc/solve_logisticregression.rs | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/rust_project/loda-rust-cli/src/arc/solve_logisticregression.rs b/rust_project/loda-rust-cli/src/arc/solve_logisticregression.rs index d1a8196a..90a838cc 100644 --- a/rust_project/loda-rust-cli/src/arc/solve_logisticregression.rs +++ b/rust_project/loda-rust-cli/src/arc/solve_logisticregression.rs @@ -968,10 +968,10 @@ impl SolveLogisticRegression { let enable_histogram_diagonal_a: bool = [false, false, false][v]; let enable_histogram_diagonal_b: bool = [false, false, false][v]; - let enable_histogram_diagonal_c: bool = [false, true, false][v]; - let enable_histogram_diagonal_d: bool = [false, true, false][v]; - let enable_histogram_diagonal_e: bool = [false, false, false][v]; - let enable_histogram_diagonal_f: bool = [false, false, false][v]; + let enable_histogram_diagonal_c: bool = [false, true, true][v]; + let enable_histogram_diagonal_d: bool = [false, true, true][v]; + let enable_histogram_diagonal_e: bool = [false, false, true][v]; + let enable_histogram_diagonal_f: bool = [false, false, true][v]; let enable_center_indicator_a: bool = [false, true, false][v]; let enable_center_indicator_x: bool = [false, true, false][v]; @@ -982,7 +982,7 @@ impl SolveLogisticRegression { let enable_output_four_xy_pairs: bool = false; let enable_input_three_xy_pairs: bool = [false, false, false][v]; let enable_output_three_xy_pairs: bool = false; - let enable_gravity: bool = false; + let enable_gravity: bool = [false, false, true][v]; let enable_mod2: bool = [true, true, true][v]; let enable_mod2_reverse_input: bool = [true, true, true][v]; @@ -992,18 +992,18 @@ impl SolveLogisticRegression { let enable_mod3_reverse_input: bool = [false, false, false][v]; let enable_mod3_reverse_output: bool = [false, false, false][v]; - let enable_hole_type1_center: bool = [true, false, false][v]; - let enable_hole_type1_all_colors: bool = [false, false, false][v]; - let enable_color_repair: bool = [true, false, false][v]; + let enable_hole_type1_center: bool = [true, false, true][v]; + let enable_hole_type1_all_colors: bool = [false, false, true][v]; + let enable_color_repair: bool = [true, false, true][v]; let enable_shape_transformation_images: bool = [false, true, false][v]; - let enable_noisecolor_in_outline: bool = [true, false, false][v]; + let enable_noisecolor_in_outline: bool = [true, false, true][v]; let enable_grid: bool = [true, false, false][v]; - let enable_enumerated_clusters_grow_mask3: bool = [false, false, true][v]; + let enable_enumerated_clusters_grow_mask3: bool = [false, false, false][v]; let enable_color_grow_mask1: bool = [false, true, true][v]; - let enable_color_grow_mask2: bool = [false, true, true][v]; - let enable_color_grow_mask3: bool = [false, true, true][v]; + let enable_color_grow_mask2: bool = [false, true, false][v]; + let enable_color_grow_mask3: bool = [false, true, false][v]; let enable_no_change_to_color: bool = true; let enable_no_change_to_center_color: bool = [false, true, false][v]; From 709bcaa355131756e35a42015a5596805dcd6d4a Mon Sep 17 00:00:00 2001 From: Simon Strandgaard Date: Tue, 28 Nov 2023 01:39:41 +0100 Subject: [PATCH 12/16] Mini-ARC: Flipping random features so it solves 25 task fully and 0 tasks partially. --- .../src/arc/solve_logisticregression.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/rust_project/loda-rust-cli/src/arc/solve_logisticregression.rs b/rust_project/loda-rust-cli/src/arc/solve_logisticregression.rs index 90a838cc..df1c1225 100644 --- a/rust_project/loda-rust-cli/src/arc/solve_logisticregression.rs +++ b/rust_project/loda-rust-cli/src/arc/solve_logisticregression.rs @@ -1005,18 +1005,18 @@ impl SolveLogisticRegression { let enable_color_grow_mask2: bool = [false, true, false][v]; let enable_color_grow_mask3: bool = [false, true, false][v]; - let enable_no_change_to_color: bool = true; - let enable_no_change_to_center_color: bool = [false, true, false][v]; - let enable_no_change_to_noise_color: bool = [false, false, false][v]; + let enable_no_change_to_color: bool = [false, false, true][v]; + let enable_no_change_to_center_color: bool = [false, true, true][v]; + let enable_no_change_to_noise_color: bool = [false, false, true][v]; let enable_object_center_same_as_neighbour: bool = [false, false, false][v]; - let enable_edge: bool = [false, false, false][v]; + let enable_edge: bool = [false, false, true][v]; let enable_color_inside_bounding_box: bool = [true, true, true][v]; let enable_object_id_image_connectivity4: bool = [false, false, false][v]; let enable_object_id_image_connectivity8: bool = [false, false, false][v]; let enable_trigram_count_center: bool = [false, true, true][v]; - let enable_trigram_count_word1_center: bool = [false, true, true][v]; + let enable_trigram_count_word1_center: bool = [false, true, false][v]; let enable_trigram_count_word012_center: bool = [false, true, true][v]; let enable_full_row_and_column: bool = [true, false, false][v]; @@ -1025,7 +1025,7 @@ impl SolveLogisticRegression { let enable_full_row: bool = [false, false, false][v]; let enable_full_column: bool = [false, false, false][v]; - let enable_symmetry_shorter: bool = [false, false, false][v]; + let enable_symmetry_shorter: bool = [false, false, true][v]; let enable_symmetry_masks: bool = false; let enable_corner_classification: bool = false; @@ -1039,10 +1039,10 @@ impl SolveLogisticRegression { let enable_scale_widthheight: bool = [has_different_size_for_input_output, false, false][v]; let enable_check_pixel_in_histogram: bool = [false, false, false][v]; - let enable_nearest_color: bool = [false, true, false][v]; + let enable_nearest_color: bool = [false, true, true][v]; let enable_colordirection_to_distanceimage: bool = [false, false, true][v]; - let enable_neighbour_color: bool = [false, false, false][v]; - let enable_adjacent_neighbour_same_as_center: bool = false; + let enable_neighbour_color: bool = [false, false, true][v]; + let enable_adjacent_neighbour_same_as_center: bool = [false, false, true][v]; let enable_opposite_neighbour: bool = [false, true, false][v]; let enable_removal_color_center: bool = [false, false, false][v]; let enable_detect_nonsquare: bool = false; From 80fad381d91359286d1b8c3d276af5444a01798a Mon Sep 17 00:00:00 2001 From: Simon Strandgaard Date: Tue, 28 Nov 2023 01:43:00 +0100 Subject: [PATCH 13/16] Partially undid commit 709bcaa355131756e35a42015a5596805dcd6d4a, that impacted variant=0 and variant=1. --- rust_project/loda-rust-cli/src/arc/solve_logisticregression.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust_project/loda-rust-cli/src/arc/solve_logisticregression.rs b/rust_project/loda-rust-cli/src/arc/solve_logisticregression.rs index df1c1225..1c539296 100644 --- a/rust_project/loda-rust-cli/src/arc/solve_logisticregression.rs +++ b/rust_project/loda-rust-cli/src/arc/solve_logisticregression.rs @@ -1005,7 +1005,7 @@ impl SolveLogisticRegression { let enable_color_grow_mask2: bool = [false, true, false][v]; let enable_color_grow_mask3: bool = [false, true, false][v]; - let enable_no_change_to_color: bool = [false, false, true][v]; + let enable_no_change_to_color: bool = true; let enable_no_change_to_center_color: bool = [false, true, true][v]; let enable_no_change_to_noise_color: bool = [false, false, true][v]; let enable_object_center_same_as_neighbour: bool = [false, false, false][v]; From 2410608e8cf176c9ede3be3759c1d56204ea4cd1 Mon Sep 17 00:00:00 2001 From: Simon Strandgaard Date: Tue, 28 Nov 2023 01:52:08 +0100 Subject: [PATCH 14/16] Mini-ARC: Flipping random features so it solves 25 task fully and 0 tasks partially. --- .../loda-rust-cli/src/arc/solve_logisticregression.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rust_project/loda-rust-cli/src/arc/solve_logisticregression.rs b/rust_project/loda-rust-cli/src/arc/solve_logisticregression.rs index 1c539296..3ec3f75f 100644 --- a/rust_project/loda-rust-cli/src/arc/solve_logisticregression.rs +++ b/rust_project/loda-rust-cli/src/arc/solve_logisticregression.rs @@ -1044,7 +1044,7 @@ impl SolveLogisticRegression { let enable_neighbour_color: bool = [false, false, true][v]; let enable_adjacent_neighbour_same_as_center: bool = [false, false, true][v]; let enable_opposite_neighbour: bool = [false, true, false][v]; - let enable_removal_color_center: bool = [false, false, false][v]; + let enable_removal_color_center: bool = [false, false, true][v]; let enable_detect_nonsquare: bool = false; let enable_typo_for_center_row_right_columns: bool = [!has_different_size_for_input_output, false, false][v]; @@ -1058,11 +1058,11 @@ impl SolveLogisticRegression { let enable_shape3x3_with_trim: bool = [true, false, false][v]; let enable_shape3x3_with_area5x5: bool = [false, true, true][v]; let enable_shape3x3_input: bool = [true, false, true][v]; - let enable_shape3x3_input_nonbackground: bool = [false, true, true][v]; + let enable_shape3x3_input_nonbackground: bool = [false, true, false][v]; let enable_shape3x3_output: bool = [false, true, true][v]; let enable_shape3x3_with_different_than_input_most_popular_color: bool = [false, true, true][v]; - let enable_shape_type_image_connectivity4: bool = [true, false, true][v]; + let enable_shape_type_image_connectivity4: bool = [true, false, false][v]; let enable_shape_type_image_connectivity8: bool = true; let enable_shape_type45_image_connectivity4: bool = true; let enable_shape_type45_image_connectivity8: bool = true; From ba6e27dcef9b1047926a397ef2ef843f04a513b7 Mon Sep 17 00:00:00 2001 From: Simon Strandgaard Date: Tue, 28 Nov 2023 02:22:09 +0100 Subject: [PATCH 15/16] Bumped version, and submitted new ARCathon 2023 docker image. --- rust_project/Cargo.lock | 2 +- .../payload/.loda-rust/analytics-arc/analytics_log.txt | 2 +- .../.loda-rust/analytics-arc/last_analytics_timestamp.txt | 2 +- rust_project/loda-rust-cli/Cargo.toml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/rust_project/Cargo.lock b/rust_project/Cargo.lock index 50e039a9..0f0ecf01 100644 --- a/rust_project/Cargo.lock +++ b/rust_project/Cargo.lock @@ -2124,7 +2124,7 @@ dependencies = [ [[package]] name = "loda-rust-cli" -version = "2023.11.26" +version = "2023.11.28" dependencies = [ "ahash", "alphanumeric-sort", diff --git a/rust_project/arc-competition/payload/.loda-rust/analytics-arc/analytics_log.txt b/rust_project/arc-competition/payload/.loda-rust/analytics-arc/analytics_log.txt index 0ea840e0..02ed8f98 100644 --- a/rust_project/arc-competition/payload/.loda-rust/analytics-arc/analytics_log.txt +++ b/rust_project/arc-competition/payload/.loda-rust/analytics-arc/analytics_log.txt @@ -32,4 +32,4 @@ optimize: 0, dontoptimize: 1, optimize/total: 0.0% AnalyzeProgramModified timestamps: 88 -subcommand_analytics finished, elapsed: 24 ms +subcommand_analytics finished, elapsed: 20 ms diff --git a/rust_project/arc-competition/payload/.loda-rust/analytics-arc/last_analytics_timestamp.txt b/rust_project/arc-competition/payload/.loda-rust/analytics-arc/last_analytics_timestamp.txt index 0a6a9702..0bfa4520 100644 --- a/rust_project/arc-competition/payload/.loda-rust/analytics-arc/last_analytics_timestamp.txt +++ b/rust_project/arc-competition/payload/.loda-rust/analytics-arc/last_analytics_timestamp.txt @@ -1 +1 @@ -2023-11-26T21:00:17Z \ No newline at end of file +2023-11-28T00:54:05Z \ No newline at end of file diff --git a/rust_project/loda-rust-cli/Cargo.toml b/rust_project/loda-rust-cli/Cargo.toml index 06867023..2165a15a 100644 --- a/rust_project/loda-rust-cli/Cargo.toml +++ b/rust_project/loda-rust-cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "loda-rust-cli" -version = "2023.11.26" +version = "2023.11.28" authors = ["Simon Strandgaard "] description = "Command line interface for LODA Rust" repository = "https://github.com/loda-lang/loda-rust" From 00d00a8fc22726ecce0760bd2b4383ae64d17fd1 Mon Sep 17 00:00:00 2001 From: Simon Strandgaard Date: Wed, 29 Nov 2023 19:28:41 +0100 Subject: [PATCH 16/16] Status --- .../loda-rust-cli/src/arc/solve_logisticregression.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rust_project/loda-rust-cli/src/arc/solve_logisticregression.rs b/rust_project/loda-rust-cli/src/arc/solve_logisticregression.rs index 62970f48..9feac69a 100644 --- a/rust_project/loda-rust-cli/src/arc/solve_logisticregression.rs +++ b/rust_project/loda-rust-cli/src/arc/solve_logisticregression.rs @@ -1,6 +1,11 @@ //! Performs logistic regression of each input pixel with the corresponding classification for the output pixel. //! //! These older commits solves some of the tasks from the hidden ARC dataset, using logistic regression: +//! commit 2023-Nov-28: solves 1 of the hidden ARC tasks. This uses variant=0 and variant=1 and variant=2. Worse than ever. +//! I have broken enable_earlier_prediction_shapetype_connectivity8 for variant=0, so it only solves 1 task. +//! And variant=1 and variant=2 doesn't solve any tasks. +//! https://github.com/loda-lang/loda-rust/commit/ba6e27dcef9b1047926a397ef2ef843f04a513b7 +//! //! commit 2023-Nov-26: solves 2 of the hidden ARC tasks. This uses variant=0 and variant=1 and variant=2. Only variant=0 does something useful. //! Since it uses multiple variants and doesn't solve more tasks than the previous commit, then it is not an improvement. //! https://github.com/loda-lang/loda-rust/commit/01069f3a25770d4b12f6be5b27d2266948456275