Commit 63ab2597 authored by Olivier REYNET's avatar Olivier REYNET
Browse files

CART Python add

parent 0ef0c070
import random
import numpy as np
def impurity(target):
acc = 0.0
unique, frequency = np.unique(target, return_counts=True)
size2 = float(target.shape[0])**2
for i, c in enumerate(unique):
acc += frequency[i]**2 / size2
return 1.0 - acc
class CartTree:
def __init__(self, max_depth=4):
self.depth = 0 # start as root
self.left = None
self.right = None
self.feature = None
self.label = None
self.purity_gain = None
self.threshold = None
self.n_features = None # to prune
self.max_depth = max_depth
def fit(self, features, target):
self.rec_tree_generation(features, target)
self.prune(self.max_depth)
def rec_tree_generation(self, features, target):
self.n_features = features.shape[0]
values, counts = np.unique(target, return_counts=True)
# A unique class -> found !
if len(counts) == 1:
self.label = target[0]
return
# Find the largest class
max_index = np.argmax(counts)
max_class = values[max_index]
self.label = max_class
best_gain = 0.0
best_feature = None
best_threshold = None
impurity_node = impurity(target)
# Select best feature to split along max_class
for feature_index in range(features.shape[1]):
feature_scale = np.unique(features[:, feature_index])
# print("Feature scale : ", feature_scale)
thresholds = (feature_scale[:-1] + feature_scale[1:]) / 2.0
# Thresholds are set to values between each features values
# print("Thresholds : ", thresholds)
for threshold in thresholds:
left_target = target[features[:, feature_index] <= threshold]
left_impurity = impurity(left_target)
n_left = float(left_target.shape[0]) / self.n_features
right_target = target[features[:, feature_index] > threshold]
right_impurity = impurity(right_target)
n_right = float(right_target.shape[0]) / self.n_features
# the larger purity gain, the better classification.
# (right and left) should be purer, so purity_gain > 0
purity_gain = impurity_node - (n_left * left_impurity + n_right * right_impurity)
if purity_gain > best_gain:
best_gain = purity_gain
best_feature = feature_index
best_threshold = threshold
self.feature = best_feature
self.purity_gain = best_gain
self.threshold = best_threshold
print("Best Feature to split : ", self.feature, " Gain : ", self.purity_gain, " Threshold : ", self.threshold)
# Let the tree grow to the left and the right !
left_features = features[features[:, self.feature] <= self.threshold] # select features
left_target = target[features[:, self.feature] <= self.threshold] # select associated targets
self.left = CartTree()
self.left.depth = self.depth + 1
self.left.rec_tree_generation(left_features, left_target)
right_features = features[features[:, self.feature] > self.threshold]
right_target = target[features[:, self.feature] > self.threshold]
self.right = CartTree()
self.right.depth = self.depth + 1
self.right.rec_tree_generation(right_features, right_target)
def prune(self, max_depth):
if self.feature is None:
return
self.left.prune(max_depth)
self.right.prune(max_depth)
if self.depth >= max_depth:
self.left = None
self.right = None
self.feature = None
def predict(self, xfeatures):
return np.array([self._predict(xf) for xf in xfeatures])
def _predict(self, xfeature):
if self.feature != None:
if xfeature[self.feature] <= self.threshold:
return self.left._predict(xfeature)
else:
return self.right._predict(xfeature)
else:
return self.label
import pandas as pd
from matplotlib import pyplot as plt
from sklearn import tree
from sklearn.metrics import ConfusionMatrixDisplay, confusion_matrix
from sklearn.model_selection import train_test_split
import graphviz
from CART import *
# Extract dataset
dataset='croprec.csv'
crop_df = pd.read_csv(dataset, header=0)
Y = crop_df.label.values
features = crop_df.columns.values[:-1]
crop_df = crop_df.drop('label', axis=1)
X = crop_df.values
classes = np.unique(Y)
print(features, classes)
print(classes.shape)
# TRAIN/TEST SPLIT
X_train, X_test, Y_train, Y_test = train_test_split(X, Y, test_size=0.33, random_state=42)
print("Splitting test, train", X_train.shape, X_test.shape)
# My CART_TREES TREE
print("Training !")
myclassifier = CartTree(max_depth=12);
myclassifier.fit(X_train, Y_train)
print(myclassifier)
# SKLEARN CART_TREES TREE
clf = tree.DecisionTreeClassifier(random_state=None, max_depth=12)
clf = clf.fit(X_train, Y_train)
dot_data = tree.export_graphviz(clf,
out_file=None,
feature_names=features,
class_names=classes,
filled=True,
rounded=True,
special_characters=True)
graph = graphviz.Source(dot_data)
graph.render("Crop recommandations")
# PREDICTIONS
Y_pred = myclassifier.predict(X_test)
print(confusion_matrix(Y_test, Y_pred, labels=classes))
ConfusionMatrixDisplay.from_predictions(Y_test, Y_pred, display_labels=classes)
plt.title("My predictions")
plt.show()
Y_pred = clf.predict(X_test)
ConfusionMatrixDisplay.from_predictions(Y_test, Y_pred, display_labels=classes)
plt.title("SKLEARN")
plt.show()
This diff is collapsed.
set(CMAKE_C_COMPILER "/usr/local/Cellar/gcc/11.2.0/bin/gcc-11")
set(CMAKE_C_COMPILER_ARG1 "")
set(CMAKE_C_COMPILER_ID "GNU")
set(CMAKE_C_COMPILER_VERSION "11.2.0")
set(CMAKE_C_COMPILER_VERSION_INTERNAL "")
set(CMAKE_C_COMPILER_WRAPPER "")
set(CMAKE_C_STANDARD_COMPUTED_DEFAULT "17")
set(CMAKE_C_COMPILE_FEATURES "c_std_90;c_function_prototypes;c_std_99;c_restrict;c_variadic_macros;c_std_11;c_static_assert;c_std_17;c_std_23")
set(CMAKE_C90_COMPILE_FEATURES "c_std_90;c_function_prototypes")
set(CMAKE_C99_COMPILE_FEATURES "c_std_99;c_restrict;c_variadic_macros")
set(CMAKE_C11_COMPILE_FEATURES "c_std_11;c_static_assert")
set(CMAKE_C17_COMPILE_FEATURES "c_std_17")
set(CMAKE_C23_COMPILE_FEATURES "c_std_23")
set(CMAKE_C_PLATFORM_ID "Darwin")
set(CMAKE_C_SIMULATE_ID "")
set(CMAKE_C_COMPILER_FRONTEND_VARIANT "")
set(CMAKE_C_SIMULATE_VERSION "")
set(CMAKE_C_COMPILER_SYSROOT "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr")
set(CMAKE_COMPILER_SYSROOT "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr")
set(CMAKE_AR "/usr/bin/ar")
set(CMAKE_C_COMPILER_AR "/usr/local/Cellar/gcc/11.2.0/bin/gcc-ar-11")
set(CMAKE_RANLIB "/usr/bin/ranlib")
set(CMAKE_C_COMPILER_RANLIB "/usr/local/Cellar/gcc/11.2.0/bin/gcc-ranlib-11")
set(CMAKE_LINKER "/usr/bin/ld")
set(CMAKE_MT "")
set(CMAKE_COMPILER_IS_GNUCC 1)
set(CMAKE_C_COMPILER_LOADED 1)
set(CMAKE_C_COMPILER_WORKS TRUE)
set(CMAKE_C_ABI_COMPILED TRUE)
set(CMAKE_COMPILER_IS_MINGW )
set(CMAKE_COMPILER_IS_CYGWIN )
if(CMAKE_COMPILER_IS_CYGWIN)
set(CYGWIN 1)
set(UNIX 1)
endif()
set(CMAKE_C_COMPILER_ENV_VAR "CC")
if(CMAKE_COMPILER_IS_MINGW)
set(MINGW 1)
endif()
set(CMAKE_C_COMPILER_ID_RUN 1)
set(CMAKE_C_SOURCE_FILE_EXTENSIONS c;m)
set(CMAKE_C_IGNORE_EXTENSIONS h;H;o;O;obj;OBJ;def;DEF;rc;RC)
set(CMAKE_C_LINKER_PREFERENCE 10)
# Save compiler ABI information.
set(CMAKE_C_SIZEOF_DATA_PTR "8")
set(CMAKE_C_COMPILER_ABI "")
set(CMAKE_C_BYTE_ORDER "LITTLE_ENDIAN")
set(CMAKE_C_LIBRARY_ARCHITECTURE "")
if(CMAKE_C_SIZEOF_DATA_PTR)
set(CMAKE_SIZEOF_VOID_P "${CMAKE_C_SIZEOF_DATA_PTR}")
endif()
if(CMAKE_C_COMPILER_ABI)
set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_C_COMPILER_ABI}")
endif()
if(CMAKE_C_LIBRARY_ARCHITECTURE)
set(CMAKE_LIBRARY_ARCHITECTURE "")
endif()
set(CMAKE_C_CL_SHOWINCLUDES_PREFIX "")
if(CMAKE_C_CL_SHOWINCLUDES_PREFIX)
set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_C_CL_SHOWINCLUDES_PREFIX}")
endif()
set(CMAKE_C_SYSROOT_FLAG "-isysroot")
set(CMAKE_C_OSX_DEPLOYMENT_TARGET_FLAG "-mmacosx-version-min=")
set(CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES "/usr/local/Cellar/gcc/11.2.0/lib/gcc/11/gcc/x86_64-apple-darwin20/11.2.0/include;/usr/local/Cellar/gcc/11.2.0/lib/gcc/11/gcc/x86_64-apple-darwin20/11.2.0/include-fixed;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks")
set(CMAKE_C_IMPLICIT_LINK_LIBRARIES "gcc_ext.10.5;gcc")
set(CMAKE_C_IMPLICIT_LINK_DIRECTORIES "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib;/usr/local/Cellar/gcc/11.2.0/lib/gcc/11/gcc/x86_64-apple-darwin20/11.2.0;/usr/local/Cellar/gcc/11.2.0/lib/gcc/11;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/lib")
set(CMAKE_C_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks")
set(CMAKE_CXX_COMPILER "/usr/local/Cellar/gcc/11.2.0/bin/g++-11")
set(CMAKE_CXX_COMPILER_ARG1 "")
set(CMAKE_CXX_COMPILER_ID "GNU")
set(CMAKE_CXX_COMPILER_VERSION "11.2.0")
set(CMAKE_CXX_COMPILER_VERSION_INTERNAL "")
set(CMAKE_CXX_COMPILER_WRAPPER "")
set(CMAKE_CXX_STANDARD_COMPUTED_DEFAULT "17")
set(CMAKE_CXX_COMPILE_FEATURES "cxx_std_98;cxx_template_template_parameters;cxx_std_11;cxx_alias_templates;cxx_alignas;cxx_alignof;cxx_attributes;cxx_auto_type;cxx_constexpr;cxx_decltype;cxx_decltype_incomplete_return_types;cxx_default_function_template_args;cxx_defaulted_functions;cxx_defaulted_move_initializers;cxx_delegating_constructors;cxx_deleted_functions;cxx_enum_forward_declarations;cxx_explicit_conversions;cxx_extended_friend_declarations;cxx_extern_templates;cxx_final;cxx_func_identifier;cxx_generalized_initializers;cxx_inheriting_constructors;cxx_inline_namespaces;cxx_lambdas;cxx_local_type_template_args;cxx_long_long_type;cxx_noexcept;cxx_nonstatic_member_init;cxx_nullptr;cxx_override;cxx_range_for;cxx_raw_string_literals;cxx_reference_qualified_functions;cxx_right_angle_brackets;cxx_rvalue_references;cxx_sizeof_member;cxx_static_assert;cxx_strong_enums;cxx_thread_local;cxx_trailing_return_types;cxx_unicode_literals;cxx_uniform_initialization;cxx_unrestricted_unions;cxx_user_literals;cxx_variadic_macros;cxx_variadic_templates;cxx_std_14;cxx_aggregate_default_initializers;cxx_attribute_deprecated;cxx_binary_literals;cxx_contextual_conversions;cxx_decltype_auto;cxx_digit_separators;cxx_generic_lambdas;cxx_lambda_init_captures;cxx_relaxed_constexpr;cxx_return_type_deduction;cxx_variable_templates;cxx_std_17;cxx_std_20;cxx_std_23")
set(CMAKE_CXX98_COMPILE_FEATURES "cxx_std_98;cxx_template_template_parameters")
set(CMAKE_CXX11_COMPILE_FEATURES "cxx_std_11;cxx_alias_templates;cxx_alignas;cxx_alignof;cxx_attributes;cxx_auto_type;cxx_constexpr;cxx_decltype;cxx_decltype_incomplete_return_types;cxx_default_function_template_args;cxx_defaulted_functions;cxx_defaulted_move_initializers;cxx_delegating_constructors;cxx_deleted_functions;cxx_enum_forward_declarations;cxx_explicit_conversions;cxx_extended_friend_declarations;cxx_extern_templates;cxx_final;cxx_func_identifier;cxx_generalized_initializers;cxx_inheriting_constructors;cxx_inline_namespaces;cxx_lambdas;cxx_local_type_template_args;cxx_long_long_type;cxx_noexcept;cxx_nonstatic_member_init;cxx_nullptr;cxx_override;cxx_range_for;cxx_raw_string_literals;cxx_reference_qualified_functions;cxx_right_angle_brackets;cxx_rvalue_references;cxx_sizeof_member;cxx_static_assert;cxx_strong_enums;cxx_thread_local;cxx_trailing_return_types;cxx_unicode_literals;cxx_uniform_initialization;cxx_unrestricted_unions;cxx_user_literals;cxx_variadic_macros;cxx_variadic_templates")
set(CMAKE_CXX14_COMPILE_FEATURES "cxx_std_14;cxx_aggregate_default_initializers;cxx_attribute_deprecated;cxx_binary_literals;cxx_contextual_conversions;cxx_decltype_auto;cxx_digit_separators;cxx_generic_lambdas;cxx_lambda_init_captures;cxx_relaxed_constexpr;cxx_return_type_deduction;cxx_variable_templates")
set(CMAKE_CXX17_COMPILE_FEATURES "cxx_std_17")
set(CMAKE_CXX20_COMPILE_FEATURES "cxx_std_20")
set(CMAKE_CXX23_COMPILE_FEATURES "cxx_std_23")
set(CMAKE_CXX_PLATFORM_ID "Darwin")
set(CMAKE_CXX_SIMULATE_ID "")
set(CMAKE_CXX_COMPILER_FRONTEND_VARIANT "")
set(CMAKE_CXX_SIMULATE_VERSION "")
set(CMAKE_CXX_COMPILER_SYSROOT "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr")
set(CMAKE_COMPILER_SYSROOT "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr")
set(CMAKE_AR "/usr/bin/ar")
set(CMAKE_CXX_COMPILER_AR "/usr/local/Cellar/gcc/11.2.0/bin/gcc-ar-11")
set(CMAKE_RANLIB "/usr/bin/ranlib")
set(CMAKE_CXX_COMPILER_RANLIB "/usr/local/Cellar/gcc/11.2.0/bin/gcc-ranlib-11")
set(CMAKE_LINKER "/usr/bin/ld")
set(CMAKE_MT "")
set(CMAKE_COMPILER_IS_GNUCXX 1)
set(CMAKE_CXX_COMPILER_LOADED 1)
set(CMAKE_CXX_COMPILER_WORKS TRUE)
set(CMAKE_CXX_ABI_COMPILED TRUE)
set(CMAKE_COMPILER_IS_MINGW )
set(CMAKE_COMPILER_IS_CYGWIN )
if(CMAKE_COMPILER_IS_CYGWIN)
set(CYGWIN 1)
set(UNIX 1)
endif()
set(CMAKE_CXX_COMPILER_ENV_VAR "CXX")
if(CMAKE_COMPILER_IS_MINGW)
set(MINGW 1)
endif()
set(CMAKE_CXX_COMPILER_ID_RUN 1)
set(CMAKE_CXX_SOURCE_FILE_EXTENSIONS C;M;c++;cc;cpp;cxx;m;mm;mpp;CPP;ixx;cppm)
set(CMAKE_CXX_IGNORE_EXTENSIONS inl;h;hpp;HPP;H;o;O;obj;OBJ;def;DEF;rc;RC)
foreach (lang C OBJC OBJCXX)
if (CMAKE_${lang}_COMPILER_ID_RUN)
foreach(extension IN LISTS CMAKE_${lang}_SOURCE_FILE_EXTENSIONS)
list(REMOVE_ITEM CMAKE_CXX_SOURCE_FILE_EXTENSIONS ${extension})
endforeach()
endif()
endforeach()
set(CMAKE_CXX_LINKER_PREFERENCE 30)
set(CMAKE_CXX_LINKER_PREFERENCE_PROPAGATES 1)
# Save compiler ABI information.
set(CMAKE_CXX_SIZEOF_DATA_PTR "8")
set(CMAKE_CXX_COMPILER_ABI "")
set(CMAKE_CXX_BYTE_ORDER "LITTLE_ENDIAN")
set(CMAKE_CXX_LIBRARY_ARCHITECTURE "")
if(CMAKE_CXX_SIZEOF_DATA_PTR)
set(CMAKE_SIZEOF_VOID_P "${CMAKE_CXX_SIZEOF_DATA_PTR}")
endif()
if(CMAKE_CXX_COMPILER_ABI)
set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_CXX_COMPILER_ABI}")
endif()
if(CMAKE_CXX_LIBRARY_ARCHITECTURE)
set(CMAKE_LIBRARY_ARCHITECTURE "")
endif()
set(CMAKE_CXX_CL_SHOWINCLUDES_PREFIX "")
if(CMAKE_CXX_CL_SHOWINCLUDES_PREFIX)
set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_CXX_CL_SHOWINCLUDES_PREFIX}")
endif()
set(CMAKE_CXX_SYSROOT_FLAG "-isysroot")
set(CMAKE_CXX_OSX_DEPLOYMENT_TARGET_FLAG "-mmacosx-version-min=")
set(CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES "/usr/local/Cellar/gcc/11.2.0/include/c++/11.2.0;/usr/local/Cellar/gcc/11.2.0/include/c++/11.2.0/x86_64-apple-darwin20;/usr/local/Cellar/gcc/11.2.0/include/c++/11.2.0/backward;/usr/local/Cellar/gcc/11.2.0/lib/gcc/11/gcc/x86_64-apple-darwin20/11.2.0/include;/usr/local/Cellar/gcc/11.2.0/lib/gcc/11/gcc/x86_64-apple-darwin20/11.2.0/include-fixed;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks")
set(CMAKE_CXX_IMPLICIT_LINK_LIBRARIES "stdc++;gcc_ext.10.5;gcc")
set(CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib;/usr/local/Cellar/gcc/11.2.0/lib/gcc/11/gcc/x86_64-apple-darwin20/11.2.0;/usr/local/Cellar/gcc/11.2.0/lib/gcc/11;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/lib")
set(CMAKE_CXX_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/System/Library/Frameworks")
set(CMAKE_HOST_SYSTEM "Darwin-20.6.0")
set(CMAKE_HOST_SYSTEM_NAME "Darwin")
set(CMAKE_HOST_SYSTEM_VERSION "20.6.0")
set(CMAKE_HOST_SYSTEM_PROCESSOR "x86_64")
set(CMAKE_SYSTEM "Darwin-20.6.0")
set(CMAKE_SYSTEM_NAME "Darwin")
set(CMAKE_SYSTEM_VERSION "20.6.0")
set(CMAKE_SYSTEM_PROCESSOR "x86_64")
set(CMAKE_CROSSCOMPILING "FALSE")
set(CMAKE_SYSTEM_LOADED 1)
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.21
# Relative path conversion top directories.
set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/Users/o/Documents/gitlab/embedded-machine-learning")
set(CMAKE_RELATIVE_PATH_TOP_BINARY "/Users/o/Documents/gitlab/embedded-machine-learning/cmake-build-debug")
# Force unix paths in dependencies.
set(CMAKE_FORCE_UNIX_PATHS 1)
# The C and CXX include file regular expressions for this directory.
set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$")
set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$")
set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN})
set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN})
This diff is collapsed.
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.21
# The generator used is:
set(CMAKE_DEPENDS_GENERATOR "Unix Makefiles")
# The top level Makefile was generated from the following files:
set(CMAKE_MAKEFILE_DEPENDS
"CMakeCache.txt"
"../CMakeLists.txt"
"../Extraction/CMakeLists.txt"
"CMakeFiles/3.21.2/CMakeCCompiler.cmake"
"CMakeFiles/3.21.2/CMakeCXXCompiler.cmake"
"CMakeFiles/3.21.2/CMakeSystem.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/CMakeCCompiler.cmake.in"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/CMakeCCompilerABI.c"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/CMakeCInformation.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/CMakeCXXCompiler.cmake.in"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/CMakeCXXCompilerABI.cpp"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/CMakeCXXInformation.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/CMakeCommonLanguageInclude.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/CMakeCompilerIdDetection.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/CMakeDetermineCCompiler.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/CMakeDetermineCXXCompiler.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/CMakeDetermineCompileFeatures.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/CMakeDetermineCompiler.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/CMakeDetermineCompilerABI.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/CMakeDetermineCompilerId.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/CMakeDetermineSystem.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/CMakeExtraGeneratorDetermineCompilerMacrosAndIncludeDirs.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/CMakeFindBinUtils.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/CMakeFindCodeBlocks.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/CMakeGenericSystem.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/CMakeInitializeConfigs.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/CMakeLanguageInformation.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/CMakeParseImplicitIncludeInfo.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/CMakeParseImplicitLinkInfo.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/CMakeParseLibraryArchitecture.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/CMakeSystem.cmake.in"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/CMakeSystemSpecificInformation.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/CMakeSystemSpecificInitialize.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/CMakeTestCCompiler.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/CMakeTestCXXCompiler.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/CMakeTestCompilerCommon.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/Compiler/ADSP-DetermineCompiler.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/Compiler/ARMCC-DetermineCompiler.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/Compiler/ARMClang-DetermineCompiler.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/Compiler/AppleClang-DetermineCompiler.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/Compiler/Borland-DetermineCompiler.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/Compiler/Bruce-C-DetermineCompiler.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/Compiler/CMakeCommonCompilerMacros.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/Compiler/Clang-DetermineCompiler.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/Compiler/Clang-DetermineCompilerInternal.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/Compiler/Comeau-CXX-DetermineCompiler.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/Compiler/Compaq-C-DetermineCompiler.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/Compiler/Compaq-CXX-DetermineCompiler.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/Compiler/Cray-DetermineCompiler.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/Compiler/Embarcadero-DetermineCompiler.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/Compiler/Fujitsu-DetermineCompiler.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/Compiler/FujitsuClang-DetermineCompiler.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/Compiler/GHS-DetermineCompiler.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/Compiler/GNU-C-DetermineCompiler.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/Compiler/GNU-C.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/Compiler/GNU-CXX-DetermineCompiler.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/Compiler/GNU-CXX.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/Compiler/GNU-FindBinUtils.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/Compiler/GNU.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/Compiler/HP-C-DetermineCompiler.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/Compiler/HP-CXX-DetermineCompiler.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/Compiler/IAR-DetermineCompiler.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/Compiler/IBMCPP-C-DetermineVersionInternal.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/Compiler/IBMCPP-CXX-DetermineVersionInternal.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/Compiler/Intel-DetermineCompiler.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/Compiler/IntelLLVM-DetermineCompiler.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/Compiler/MSVC-DetermineCompiler.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/Compiler/NVHPC-DetermineCompiler.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/Compiler/NVIDIA-DetermineCompiler.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/Compiler/OpenWatcom-DetermineCompiler.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/Compiler/PGI-DetermineCompiler.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/Compiler/PathScale-DetermineCompiler.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/Compiler/ROCMClang-DetermineCompiler.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/Compiler/SCO-DetermineCompiler.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/Compiler/SDCC-C-DetermineCompiler.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/Compiler/SunPro-C-DetermineCompiler.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/Compiler/SunPro-CXX-DetermineCompiler.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/Compiler/TI-DetermineCompiler.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/Compiler/TinyCC-C-DetermineCompiler.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/Compiler/VisualAge-C-DetermineCompiler.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/Compiler/VisualAge-CXX-DetermineCompiler.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/Compiler/Watcom-DetermineCompiler.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/Compiler/XL-C-DetermineCompiler.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/Compiler/XL-CXX-DetermineCompiler.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/Compiler/XLClang-C-DetermineCompiler.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/Compiler/XLClang-CXX-DetermineCompiler.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/Compiler/zOS-C-DetermineCompiler.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/Compiler/zOS-CXX-DetermineCompiler.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/Internal/FeatureTesting.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/Platform/Apple-GNU-C.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/Platform/Apple-GNU-CXX.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/Platform/Apple-GNU.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/Platform/Darwin-Determine-CXX.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/Platform/Darwin-Initialize.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/Platform/Darwin.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/Platform/UnixPaths.cmake"
"/usr/local/Cellar/cmake/3.21.2/share/cmake/Modules/ProcessorCount.cmake"
)
# The corresponding makefile is:
set(CMAKE_MAKEFILE_OUTPUTS
"Makefile"
"CMakeFiles/cmake.check_cache"
)
# Byproducts of CMake generate step:
set(CMAKE_MAKEFILE_PRODUCTS
"CMakeFiles/3.21.2/CMakeSystem.cmake"
"CMakeFiles/3.21.2/CMakeCCompiler.cmake"
"CMakeFiles/3.21.2/CMakeCXXCompiler.cmake"
"CMakeFiles/3.21.2/CMakeCCompiler.cmake"
"CMakeFiles/3.21.2/CMakeCXXCompiler.cmake"
"CMakeFiles/CMakeDirectoryInformation.cmake"
"Extraction/CMakeFiles/CMakeDirectoryInformation.cmake"
)
# Dependency information for all targets:
set(CMAKE_DEPEND_INFO_FILES
"Extraction/CMakeFiles/EXTRACTION.dir/DependInfo.cmake"
)
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.21
# Default target executed when no arguments are given to make.
default_target: all
.PHONY : default_target
#=============================================================================
# Special targets provided by cmake.
# Disable implicit rules so canonical targets will work.
.SUFFIXES:
# Disable VCS-based implicit rules.
% : %,v
# Disable VCS-based implicit rules.
% : RCS/%
# Disable VCS-based implicit rules.
% : RCS/%,v
# Disable VCS-based implicit rules.
% : SCCS/s.%
# Disable VCS-based implicit rules.
% : s.%
.SUFFIXES: .hpux_make_needs_suffix_list
# Command-line flag to silence nested $(MAKE).
$(VERBOSE)MAKESILENT = -s
#Suppress display of executed commands.
$(VERBOSE).SILENT:
# A target that is always out of date.
cmake_force:
.PHONY : cmake_force
#=============================================================================
# Set environment variables for the build.
# The shell in which to execute make rules.
SHELL = /bin/sh
# The CMake executable.
CMAKE_COMMAND = /usr/local/Cellar/cmake/3.21.2/bin/cmake
# The command to remove a file.
RM = /usr/local/Cellar/cmake/3.21.2/bin/cmake -E rm -f
# Escaping for special characters.
EQUALS = =
# The top-level source directory on which CMake was run.
CMAKE_SOURCE_DIR = /Users/o/Documents/gitlab/embedded-machine-learning
# The top-level build directory on which CMake was run.
CMAKE_BINARY_DIR = /Users/o/Documents/gitlab/embedded-machine-learning/cmake-build-debug
#=============================================================================
# Directory level rules for the build root directory
# The main recursive "all" target.
all: Extraction/all
.PHONY : all
# The main recursive "preinstall" target.
preinstall: Extraction/preinstall
.PHONY : preinstall
# The main recursive "clean" target.
clean: Extraction/clean
.PHONY : clean
#=============================================================================
# Directory level rules for directory Extraction
# Recursive "all" directory target.
Extraction/all: Extraction/CMakeFiles/EXTRACTION.dir/all
.PHONY : Extraction/all
# Recursive "preinstall" directory target.