csvを読み込んで雑にパースして返す関数。
UCI Machine Learning RepositoryのIrisデータセットを使ってください。
std::optionalが使えます。
機械学習の本のサンプルコード(Python向け)をC++で書こうと思ったら必要になった。
| // copyright (c) 2021 M.K (a.k.a plasma-effect) | |
| // Distributed under the Boost Software License, Version 1.0. | |
| // (See http://www.boost.org/LICENSE_1_0.txt) | |
| #pragma once | |
| #include <utility> | |
| #include <tuple> | |
| namespace cpp_decorator |
csvを読み込んで雑にパースして返す関数。
UCI Machine Learning RepositoryのIrisデータセットを使ってください。
std::optionalが使えます。
機械学習の本のサンプルコード(Python向け)をC++で書こうと思ったら必要になった。
| #include<iostream> | |
| #include<string> | |
| #include<filesystem> | |
| int main() | |
| { | |
| std::string path; | |
| std::getline(std::cin, path); | |
| for (auto&& x : std::filesystem::recursive_directory_iterator(path)) | |
| { |
| // copyright (c) 2019 plasma-effect | |
| // Distributed under the Boost Software License, Version 1.0. | |
| // (See http://www.boost.org/LICENSE_1_0.txt) | |
| #pragma once | |
| #include<optional> | |
| #include<stdexcept> | |
| #include<type_traits> | |
| namespace maybe_monad |
| using System; | |
| using System.Collections.Generic; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| using System.Drawing; | |
| using System.IO; | |
| using static System.Linq.Enumerable; | |
| namespace MusicGameMovieMaker | |
| { |
| #pragma once | |
| #include<type_traits> | |
| // copyright (c) 2019 plasma-effect | |
| // Distributed under the Boost Software License, Version 1.0. | |
| // (See http://www.boost.org/LICENSE_1_0.txt) | |
| namespace auto_indexer | |
| { | |
| enum |
| using static System.Console; | |
| using static System.Linq.Enumerable; | |
| using CompetitiveCSharp; | |
| namespace CSharpTest | |
| { | |
| static class Program | |
| { | |
| static void WriteTree(SegTree tree) | |
| { |
| #pragma once | |
| #include<type_traits> | |
| #include<functional> | |
| #include<numeric> | |
| #include<algorithm> | |
| #include<boost/range/irange.hpp> | |
| #include<boost/range/adaptor/reversed.hpp> | |
| namespace lib | |
| { |
| Cycle 1 | |
| クロックタウン入り | |
| おばあちゃん×2 | |
| カカシ | |
| Stray Fairy | |
| 平原でルピー集め(81r) | |
| 魔力 | |
| 81r預ける | |
| 時のオカリナ | |
| Set: []/オカリナ/[] |
| #include<iostream> | |
| #include<functional> | |
| #include<algorithm> | |
| #include<array> | |
| #include<optional> | |
| #include<random> | |
| #include<sstream> | |
| #include<queue> | |
| constexpr int width = 9; |