diff --git a/easy.cpp b/easy.cpp index e1ef277..abbf75d 100644 --- a/easy.cpp +++ b/easy.cpp @@ -1,22 +1,12 @@ -// MIT License -// Copyright (c) [2024] Sermet Pekin -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. -// */ +/* + * MIT License + * + * Copyright (c) 2024 Sermet Pekin + + Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files... +*/ #include "micrograd.hpp" using namespace microgradCpp; int main() diff --git a/easy_adam.cpp b/easy_adam.cpp index 3206452..6a0813f 100644 --- a/easy_adam.cpp +++ b/easy_adam.cpp @@ -1,24 +1,14 @@ #include "micrograd.hpp" using namespace microgradCpp; -// MIT License -// Copyright (c) [2024] Sermet Pekin -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. -// */ +/* + * MIT License + * + * Copyright (c) 2024 Sermet Pekin + + Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files... +*/ /* g++ -std=c++17 -Iinclude -O2 -o main easy_adam.cpp */ diff --git a/easy_df.cpp b/easy_df.cpp index 8f72a1e..43098e7 100644 --- a/easy_df.cpp +++ b/easy_df.cpp @@ -1,22 +1,12 @@ -// MIT License -// Copyright (c) [2024] Sermet Pekin -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. -// */ +/* + * MIT License + * + * Copyright (c) 2024 Sermet Pekin + + Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files... +*/ #include "micrograd.hpp" #include "value.hpp" #include "mlp.hpp" diff --git a/include/csv.hpp b/include/csv.hpp index 75ff09b..a2284fa 100644 --- a/include/csv.hpp +++ b/include/csv.hpp @@ -1,22 +1,11 @@ /* -MIT License -Copyright (c) [2024] Sermet Pekin -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. + * MIT License + * + * Copyright (c) 2024 Sermet Pekin + + Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files... */ #ifndef CSV_L_HPP #define CSV_L_HPP diff --git a/include/data_utils.hpp b/include/data_utils.hpp index 4124984..2fab8be 100644 --- a/include/data_utils.hpp +++ b/include/data_utils.hpp @@ -1,24 +1,14 @@ #ifndef DataUtils_HPP #define DataUtils_HPP -// MIT License -// Copyright (c) [2024] Sermet Pekin -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. -// */ +/* + * MIT License + * + * Copyright (c) 2024 Sermet Pekin + + Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files... +*/ #include #include #include diff --git a/include/dataframe.hpp b/include/dataframe.hpp index 792b920..074ce37 100644 --- a/include/dataframe.hpp +++ b/include/dataframe.hpp @@ -1,33 +1,14 @@ /* * evdscpp: An open-source data wrapper for accessing the EVDS API. - * Author: Sermet Pekin - * * MIT License * * Copyright (c) 2024 Sermet Pekin - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - * - * - * - */ + + Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files... +*/ + #pragma once #include #include diff --git a/include/dataframe_extended.hpp b/include/dataframe_extended.hpp index a979a8b..764e051 100644 --- a/include/dataframe_extended.hpp +++ b/include/dataframe_extended.hpp @@ -6,28 +6,8 @@ * MIT License * * Copyright (c) 2024 Sermet Pekin - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - * - * - * - */ +*/ + #pragma once #include #include diff --git a/include/dataframe_utils.hpp b/include/dataframe_utils.hpp index ebda8d6..1a87be2 100644 --- a/include/dataframe_utils.hpp +++ b/include/dataframe_utils.hpp @@ -1,30 +1,12 @@ /* - * evdscpp: An open-source data wrapper for accessing the EVDS API. - * Author: Sermet Pekin - * * MIT License * * Copyright (c) 2024 Sermet Pekin - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ + + Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files... +*/ #pragma once #include #include diff --git a/include/dataprocessor.hpp b/include/dataprocessor.hpp index ba045c7..94c51c7 100644 --- a/include/dataprocessor.hpp +++ b/include/dataprocessor.hpp @@ -21,24 +21,14 @@ #include #include #include "types.hpp" -// MIT License -// Copyright (c) [2024] Sermet Pekin -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. -// */ +/* + * MIT License + * + * Copyright (c) 2024 Sermet Pekin + + Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files... +*/ using namespace microgradCpp; // Simple hash function for strings inline size_t hash_string(const std::string &str) diff --git a/include/datasetType.hpp b/include/datasetType.hpp index bd50684..afce807 100644 --- a/include/datasetType.hpp +++ b/include/datasetType.hpp @@ -8,24 +8,14 @@ #include "types.hpp" #include "dataframe.hpp" using namespace microgradCpp; -// MIT License -// Copyright (c) [2024] Sermet Pekin -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. -// */ +/* + * MIT License + * + * Copyright (c) 2024 Sermet Pekin + + Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files... +*/ inline DatasetType convert_to_dataset(const vv_double &data, int target_column = -1) { DatasetType dataset; diff --git a/include/easy.hpp b/include/easy.hpp index 2f940f8..455238b 100644 --- a/include/easy.hpp +++ b/include/easy.hpp @@ -2,23 +2,12 @@ #ifndef EASY_HPP #define EASY_HPP /* -MIT License -Copyright (c) [2024] Sermet Pekin -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. + * MIT License + * + * Copyright (c) 2024 Sermet Pekin + + Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files... */ #include #include @@ -39,24 +28,7 @@ THE SOFTWARE. #include "data_utils.hpp" #include "types.hpp" using namespace microgradCpp; -// MIT License -// Copyright (c) [2024] Sermet Pekin -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. -// */ + inline DatasetType get_iris2() // ok { DataProcessor processor; diff --git a/include/exceptions.hpp b/include/exceptions.hpp index d15365a..7c7d8ee 100644 --- a/include/exceptions.hpp +++ b/include/exceptions.hpp @@ -1,22 +1,10 @@ - /* -MIT License -Copyright (c) [2024] Sermet Pekin -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. + * MIT License + * + * Copyright (c) 2024 Sermet Pekin + + Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files... */ #ifndef EXC_HPP #define EXC_HPP diff --git a/include/header.hpp b/include/header.hpp index b69ab7a..2d5e3b2 100644 --- a/include/header.hpp +++ b/include/header.hpp @@ -3,28 +3,14 @@ * evdscpp: An open-source data wrapper for accessing the EVDS API. * Author: Sermet Pekin * + * * MIT License * * Copyright (c) 2024 Sermet Pekin - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ + + Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files... +*/ #pragma once #include #include diff --git a/include/iris.hpp b/include/iris.hpp index 646726e..d5fd8a0 100644 --- a/include/iris.hpp +++ b/include/iris.hpp @@ -1,22 +1,11 @@ /* -MIT License -Copyright (c) [2024] Sermet Pekin -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. + * MIT License + * + * Copyright (c) 2024 Sermet Pekin + + Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files... */ #ifndef IRIS_LOADER_HPP #define IRIS_LOADER_HPP diff --git a/include/linear.hpp b/include/linear.hpp index db5112b..7b07061 100644 --- a/include/linear.hpp +++ b/include/linear.hpp @@ -2,23 +2,12 @@ #ifndef LINEAR_HPP #define LINEAR_HPP /* -MIT License -Copyright (c) [2024] Sermet Pekin -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. + * MIT License + * + * Copyright (c) 2024 Sermet Pekin + + Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files... */ #include "value.hpp" #include "mlp.hpp" diff --git a/include/loss.hpp b/include/loss.hpp index 4107662..4b9d5d5 100644 --- a/include/loss.hpp +++ b/include/loss.hpp @@ -2,23 +2,12 @@ #ifndef LOSS_HPP #define LOSS_HPP /* -MIT License -Copyright (c) [2024] Sermet Pekin -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. + * MIT License + * + * Copyright (c) 2024 Sermet Pekin + + Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files... */ #include #include diff --git a/include/micrograd.hpp b/include/micrograd.hpp index 1b8dc60..1e51889 100644 --- a/include/micrograd.hpp +++ b/include/micrograd.hpp @@ -1,24 +1,13 @@ #ifndef MICROGRADCPP_HPP #define MICROGRADCPP_HPP -/* -MIT License -Copyright (c) [2024] Sermet Pekin -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. + /* + * MIT License + * + * Copyright (c) 2024 Sermet Pekin + + Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files... */ #include "exceptions.hpp" #include "sp_functional.hpp" diff --git a/include/mlp.hpp b/include/mlp.hpp index f333a34..a81e053 100644 --- a/include/mlp.hpp +++ b/include/mlp.hpp @@ -2,23 +2,12 @@ #ifndef MLP_HPP #define MLP_HPP /* -MIT License -Copyright (c) [2024] Sermet Pekin -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. + * MIT License + * + * Copyright (c) 2024 Sermet Pekin + + Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files... */ #include "linear.hpp" #include diff --git a/include/range.hpp b/include/range.hpp index 899d390..f7aac9f 100644 --- a/include/range.hpp +++ b/include/range.hpp @@ -1,23 +1,13 @@ #pragma once -// MIT License -// Copyright (c) [2024] Sermet Pekin -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. -// */ +/* + * MIT License + * + * Copyright (c) 2024 Sermet Pekin + + Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files... +*/ #include #include #include diff --git a/include/schema.hpp b/include/schema.hpp index ceee710..d876825 100644 --- a/include/schema.hpp +++ b/include/schema.hpp @@ -1,24 +1,14 @@ #ifndef SCHEMA_HPP #define SCHEMA_HPP -// MIT License -// Copyright (c) [2024] Sermet Pekin -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. -// */ +/* + * MIT License + * + * Copyright (c) 2024 Sermet Pekin + + Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files... +*/ #include #include #include diff --git a/include/series.hpp b/include/series.hpp index eb9b68d..25fe3bc 100644 --- a/include/series.hpp +++ b/include/series.hpp @@ -3,28 +3,14 @@ * evdscpp: An open-source data wrapper for accessing the EVDS API. * Author: Sermet Pekin * + * MIT License * * Copyright (c) 2024 Sermet Pekin - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ + + Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files... +*/ #pragma once #include "header.hpp" #include diff --git a/include/sgd.hpp b/include/sgd.hpp index bc5c38d..379ea83 100644 --- a/include/sgd.hpp +++ b/include/sgd.hpp @@ -2,23 +2,12 @@ #ifndef OPTIMIZER_HPP #define OPTIMIZER_HPP /* -MIT License -Copyright (c) [2024] Sermet Pekin -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. + * MIT License + * + * Copyright (c) 2024 Sermet Pekin + + Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files... */ #include "value.hpp" #include diff --git a/include/sp_functional.hpp b/include/sp_functional.hpp index 9e99e08..04c61b5 100644 --- a/include/sp_functional.hpp +++ b/include/sp_functional.hpp @@ -1,23 +1,13 @@ #pragma once -// MIT License -// Copyright (c) [2024] Sermet Pekin -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. -// */ +/* + * MIT License + * + * Copyright (c) 2024 Sermet Pekin + + Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files... +*/ #include #include #include diff --git a/include/sp_testing_utils.hpp b/include/sp_testing_utils.hpp index d6b66c0..5f68cd9 100644 --- a/include/sp_testing_utils.hpp +++ b/include/sp_testing_utils.hpp @@ -4,24 +4,14 @@ #include #include #include -// MIT License -// Copyright (c) [2024] Sermet Pekin -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. -// */ +/* + * MIT License + * + * Copyright (c) 2024 Sermet Pekin + + Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files... +*/ namespace sptest { static inline void create_temp_csv(const std::string &filename, const std::string &content) diff --git a/include/tensor_basic.hpp b/include/tensor_basic.hpp index aa208c1..2d8291d 100644 --- a/include/tensor_basic.hpp +++ b/include/tensor_basic.hpp @@ -1,24 +1,14 @@ #include #include -// MIT License -// Copyright (c) [2024] Sermet Pekin -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. -// */ +/* + * MIT License + * + * Copyright (c) 2024 Sermet Pekin + + Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files... +*/ class Tensor { public: std::vector> data; diff --git a/include/train_eval.hpp b/include/train_eval.hpp index a2de3a1..98f7f44 100644 --- a/include/train_eval.hpp +++ b/include/train_eval.hpp @@ -14,24 +14,14 @@ #include "mlp.hpp" #include "adam.hpp" #include "easy.hpp" -// MIT License -// Copyright (c) [2024] Sermet Pekin -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. -// */ +/* + * MIT License + * + * Copyright (c) 2024 Sermet Pekin + + Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files... +*/ using namespace microgradCpp; // Function to split the DataFrame into train and test sets // inline void train_test_split(DataFrame &df, double train_size, diff --git a/include/types.hpp b/include/types.hpp index ac5c9a5..f46ccfa 100644 --- a/include/types.hpp +++ b/include/types.hpp @@ -2,23 +2,12 @@ #ifndef TYPES_HPP #define TYPES_HPP /* -MIT License -Copyright (c) [2024] Sermet Pekin -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. + * MIT License + * + * Copyright (c) 2024 Sermet Pekin + + Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files... */ #include #include diff --git a/include/value.hpp b/include/value.hpp index 87ec3b7..1a12fab 100644 --- a/include/value.hpp +++ b/include/value.hpp @@ -2,23 +2,12 @@ #ifndef VALUE_HPP #define VALUE_HPP /* -MIT License -Copyright (c) [2024] Sermet Pekin -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. + * MIT License + * + * Copyright (c) 2024 Sermet Pekin + + Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files... */ #include #include diff --git a/tests/main_no_cache.cpp b/tests/main_no_cache.cpp index fbaf20f..76415a0 100644 --- a/tests/main_no_cache.cpp +++ b/tests/main_no_cache.cpp @@ -1,27 +1,13 @@ #include "micrograd.hpp" using namespace microgradCpp; -// MIT License - -// Copyright (c) [2024] Sermet Pekin - -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: - -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. - -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. -// */ +/* + * MIT License + * + * Copyright (c) 2024 Sermet Pekin + + Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files... +*/ int main() { diff --git a/tests/main_table.cpp b/tests/main_table.cpp index 4717cae..219ac8e 100644 --- a/tests/main_table.cpp +++ b/tests/main_table.cpp @@ -1,25 +1,10 @@ /* -MIT License - -Copyright (c) [2024] Sermet Pekin - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. + * MIT License + * + * Copyright (c) 2024 Sermet Pekin + + Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files... */ #include "./include/column.hpp" diff --git a/tests/test_A.cpp b/tests/test_A.cpp index 463a2ce..51ef29e 100644 --- a/tests/test_A.cpp +++ b/tests/test_A.cpp @@ -1,25 +1,10 @@ /* -MIT License - -Copyright (c) [2024] Sermet Pekin - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. + * MIT License + * + * Copyright (c) 2024 Sermet Pekin + + Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files... */ #include #include diff --git a/tests/test_arithmetic.cpp b/tests/test_arithmetic.cpp index 0af0f4e..5473d48 100644 --- a/tests/test_arithmetic.cpp +++ b/tests/test_arithmetic.cpp @@ -1,25 +1,10 @@ /* -MIT License - -Copyright (c) [2024] Sermet Pekin - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. + * MIT License + * + * Copyright (c) 2024 Sermet Pekin + + Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files... */ #include "value.hpp" #include diff --git a/tests/test_cross_ent.cpp b/tests/test_cross_ent.cpp index 7ade6f4..2a72042 100644 --- a/tests/test_cross_ent.cpp +++ b/tests/test_cross_ent.cpp @@ -1,3 +1,12 @@ +/* + * MIT License + * + * Copyright (c) 2024 Sermet Pekin + + Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files... +*/ + #include #include #include diff --git a/tests/test_csv.cpp b/tests/test_csv.cpp index 31d29e0..67cf0e4 100644 --- a/tests/test_csv.cpp +++ b/tests/test_csv.cpp @@ -1,25 +1,10 @@ /* -MIT License - -Copyright (c) [2024] Sermet Pekin - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. + * MIT License + * + * Copyright (c) 2024 Sermet Pekin + + Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files... */ #include "micrograd.hpp" diff --git a/tests/test_dataframe.cpp b/tests/test_dataframe.cpp index 7cab79d..7392c5f 100644 --- a/tests/test_dataframe.cpp +++ b/tests/test_dataframe.cpp @@ -1,3 +1,12 @@ +/* + * MIT License + * + * Copyright (c) 2024 Sermet Pekin + + Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files... +*/ + #include #include #include "micrograd.hpp" diff --git a/tests/test_df_slice.cpp b/tests/test_df_slice.cpp index 9b37f9f..f16bf1a 100644 --- a/tests/test_df_slice.cpp +++ b/tests/test_df_slice.cpp @@ -1,26 +1,11 @@ - -// MIT License - -// Copyright (c) [2024] Sermet Pekin - -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: - -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. - -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. -// */ +/* + * MIT License + * + * Copyright (c) 2024 Sermet Pekin + + Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files... +*/ #include #include #include "micrograd.hpp" diff --git a/tests/test_iris.cpp b/tests/test_iris.cpp index 8a68175..1f3ae29 100644 --- a/tests/test_iris.cpp +++ b/tests/test_iris.cpp @@ -1,25 +1,10 @@ /* -MIT License - -Copyright (c) [2024] Sermet Pekin - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. + * MIT License + * + * Copyright (c) 2024 Sermet Pekin + + Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files... */ #include "micrograd.hpp" diff --git a/tests/test_iris_load.cpp b/tests/test_iris_load.cpp index e07943a..3a28d4b 100644 --- a/tests/test_iris_load.cpp +++ b/tests/test_iris_load.cpp @@ -1,3 +1,11 @@ +/* + * MIT License + * + * Copyright (c) 2024 Sermet Pekin + + Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files... +*/ #include #include diff --git a/tests/test_main.cpp b/tests/test_main.cpp index 504d18f..06a5745 100644 --- a/tests/test_main.cpp +++ b/tests/test_main.cpp @@ -1,25 +1,10 @@ -/* -MIT License - -Copyright (c) [2024] Sermet Pekin - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. + /* + * MIT License + * + * Copyright (c) 2024 Sermet Pekin + + Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files... */ #include diff --git a/tests/test_range.cpp b/tests/test_range.cpp index 0bc17c0..d4df844 100644 --- a/tests/test_range.cpp +++ b/tests/test_range.cpp @@ -1,26 +1,11 @@ - -// MIT License - -// Copyright (c) [2024] Sermet Pekin - -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: - -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. - -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. -// */ + /* + * MIT License + * + * Copyright (c) 2024 Sermet Pekin + + Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files... +*/ #include "micrograd.hpp" #include #include diff --git a/tests/test_sgd.cpp b/tests/test_sgd.cpp index 9f0ec05..0ff3157 100644 --- a/tests/test_sgd.cpp +++ b/tests/test_sgd.cpp @@ -1,7 +1,16 @@ +/* + * MIT License + * + * Copyright (c) 2024 Sermet Pekin + + Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files... +*/ + #include #include #include "value.hpp" -#include "sgd.hpp" // Assuming your SGD and NesterovSGD classes are defined here +#include "sgd.hpp" class OptimizerTest : public ::testing::Test { protected: diff --git a/tests/test_softmax.cpp b/tests/test_softmax.cpp index 3f77a7c..48b379b 100644 --- a/tests/test_softmax.cpp +++ b/tests/test_softmax.cpp @@ -1,3 +1,12 @@ +/* + * MIT License + * + * Copyright (c) 2024 Sermet Pekin + + Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files... +*/ + #include #include "micrograd.hpp" // Assuming Value class is defined in value.hpp #include "types.hpp" // Assuming Value class is defined in value.hpp diff --git a/tests/test_value.cpp b/tests/test_value.cpp index 93c01b2..90f871e 100644 --- a/tests/test_value.cpp +++ b/tests/test_value.cpp @@ -1,25 +1,10 @@ /* -MIT License - -Copyright (c) [2024] Sermet Pekin - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. + * MIT License + * + * Copyright (c) 2024 Sermet Pekin + + Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files... */ #include "micrograd.hpp" #include diff --git a/tests/test_weights.cpp b/tests/test_weights.cpp index 162fbbf..1cfdcd6 100644 --- a/tests/test_weights.cpp +++ b/tests/test_weights.cpp @@ -1,26 +1,12 @@ /* -MIT License - -Copyright (c) [2024] Sermet Pekin - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. + * MIT License + * + * Copyright (c) 2024 Sermet Pekin + + Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files... */ + #include "micrograd.hpp" #include "adam.hpp" #include