#include <stdio.h>
#include <stdlib.h>
char err[512], dbg[512];
printf("Error creating columns vector: %s\nDebug info: %s\n", err, dbg);
return EXIT_FAILURE;
}
printf("Scaling error: %s\nDebug info: %s\n", err, dbg);
return EXIT_FAILURE;
}
printf("Scaling completed successfully.\n");
return EXIT_SUCCESS;
}
int main()
Main function to execute batch gradient descent linear regression example.
Definition batch_gd.c:316
Centralized error handling interface for the framework.
void dmlfw_get_error_string(char *error_string, uint32_t size)
Copies the last error message into the provided character buffer.
uint8_t dmlfw_error(void)
Checks if the last framework call resulted in an error.
void dmlfw_get_debug_string(char *debug_string, uint32_t size)
Copies detailed debug information about the last error into the provided character buffer.
struct __dmlfw_mat_double dmlfw_mat_double
Opaque structure representing a double precision matrix.
Definition dmlfw_mat_double.h:73
void dmlfw_mat_double_destroy(dmlfw_mat_double *matrix)
Destroys a matrix and frees all associated memory.
Feature scaling operations and utilities.
dmlfw_mat_double * dmlfw_scale_double(char *dataset_file_name, dmlfw_row_vec_string *columns_to_scale, char *parameters_file_name, char *algorithm, dmlfw_mat_double *matrix)
Scales data from a dataset according to specified columns and algorithm.
#define MLFW_MIN_MAX_SCALING_ALGORITHM
Definition dmlfw_scale_double.h:83
Core vector types and utilities for double and string data.
void dmlfw_row_vec_string_destroy(dmlfw_row_vec_string *vector)
Destroys a row vector of strings and frees its memory.
dmlfw_row_vec_string * dmlfw_row_vec_string_create_new(dimension_t columns)
Creates a new row vector of strings of specified length.
void dmlfw_row_vec_string_set(dmlfw_row_vec_string *vector, index_t index, char *string)
Sets a string element in the row vector.
struct __dmlfw_row_vec_string dmlfw_row_vec_string
Opaque structure representing a row vector of strings.
Definition dmlfw_vec_string.h:82