Full Assertions Library
Graphbook provides a comprehensive set of assertions to help you validate your data and ensure its accuracy. These assertions are designed to cover a wide range of scenarios and are easy to use.
Name | Description |
---|---|
{wrt_input}_globally_accesses_operation_input | wrt_input globally accesses operation input |
{wrt_input}_globally_accesses_data_type_decimal | wrt_input globally accesses data type decimal |
{left_limit}_data_type_is_integer_or_decimal | left_limit data type is integer or decimal |
{output}_data_type_is_text | output data type is text |
{right_operand}_is_non_zero | right_operand is non-zero |
{text}_is_array | text is array |
{dimension_index}_is_greater_than_or_equal_to_zero | dimension_index is greater than or equal to zero |
{shape}_is_greater_than_zero | shape is greater than zero |
{shape}_data_type_is_integer | shape data type is integer |
{output}_data_type_is_decimal | output data type is decimal |
{shape}_has_one_dimension | shape has one dimension |
{random_seed}_is_scalar | random_seed is scalar |
{function_output}_globally_accesses_operation_output | function_output globally accesses operation output |
{probability}_is_less_than_or_equal_to_one | probability is less than or equal to one |
{dir_path}_is_scalar_or_has_one_dimension | dir_path is scalar or has one dimension |
{output}_data_type_is_boolean | output data type is boolean |
{search_regex}_conforms_to_regular_expression | search_regex conforms to regular expression |
{array}_has_more_than_one_dimension | array has more than one dimension |
{dir_path}{file_name}_exists_in_files | dir_path file_name exists in files |
{right_operand}_is_scalar_if_{left_operand}_is_scalar | right_operand is scalar if left_operand is scalar |
{sampled_array}_number_of_dimensions_is_the_same_as_{array} | sampled_array number of dimensions is the same as array |
{subwords}_has_one_dimension_if_{words}_is_scalar | subwords has one dimension if words is scalar |
{right_limit}_data_type_is_the_same_as_{left_limit} | right_limit data type is the same as left_limit |
{input}_number_of_elements_is_equal_to_{output}_number_of_elements | input number of elements is equal to output number of elements |
{input}_number_of_elements_is_equal_to_number_of_elements_specified_by_shape_{new_shape} | input number of elements is equal to number of elements specified by shape new_shape |
{dimension_index}_is_less_than_{text}_number_of_dimensions | dimension_index is less than text number of dimensions |
{right_operand}_is_array_if_{left_operand}_is_array | right_operand is array if left_operand is array |
{dimension_index_1}_is_not_equal_to_{dimension_index_2} | dimension_index_1 is not equal to dimension_index_2 |
every_dimension_size_of_{target}_is_less_than_or_equal_to_the_corresponding_value_of_array_{shape} | Every dimension size of target is less than or equal to the corresponding value of array shape |
{dimension_index}_is_less_than_or_equal_to_{input}_number_of_dimensions | dimension_index is less than or equal to input number of dimensions |
{random_number}_shape_is_{shape} | random_number shape is shape |
{right_operand}_shape_size_is_less_than_or_equal_to_{left_operand}_shape_size | right_operand shape size is less than or equal to left_operand shape size |
{output}_shape_is_the_same_as_{input} | output shape is the same as input |
{one_hot_index}_has_one_more_dimension_than_{text} | one_hot_index has one more dimension than text |
every_dimension_size_of_{left_operand}_is_equal_to_the_corresponding_dimension_size_of_{right_operand}_except_last_two_dimensions | Every dimension size of left_operand is equal to the corresponding dimension size of right_operand except last two dimensions |
{target}_shape_size_is_less_than_or_equal_to_{shape}_size | target shape size is less than or equal to shape size |
every_dimension_size_of_{target}_is_less_than_or_equal_to_the_corresponding_dimension_size_of_result | Every dimension size of target is less than or equal to the corresponding dimension size of result |
{start_index}_is_less_than_{end_index} | start_index is less than end_index |
{derivative}_shape_is_the_same_as_{wrt_input}_globally_accessed_data | derivative shape is the same as wrt_input globally accessed data |
{select_indices}_shape_is_the_same_as_{array}_shape_with_dimension_at_index_{dimension_index}_removed | selected_indices shape is the same as array shape with dimension at index dimension_index removed |
size_of_last_dimension_of_{left_operand}_is_equal_to_size_of_second_last_dimension_of_{right_operand}_if_{right_operand}_has_more_than_one_dimension | Size of last dimension of left_operand is equal to size of second last dimension of right_operand if right_operand has more than one dimension |