Use iter trat for multi-label stratified CV

Since machine learning models tend to overfit with training data, we often divide the data at hand into training data and test data and perform performance evaluation (validation). The explanation ab

Updated Rubik's Cube Robot software 3. Solution search

# What is this article? I am currently developing a robot that solves a 2x2x2 Rubik's cube. This is a collection of commentary articles on the robot program. ![soltvvo3.jpg](https://qiita-image-stor

NBD socket setting failed when mounting image

# Event A message is output stating that the NBD socket setting failed when mounting the image. <pre> [root@XXXX ~]# sudo qemu-nbd -c /dev/sda2 CentOS-7-XXXXXXX.qcow2 qemu-nbd: Failed to set NBD soc

Tips for coding short and easy to read in Python

Hello, this is ricky. This time, I will show you how to make the code as easy as possible and how to shorten it when coding with python. I hope python beginners can write better code. + Numerical

After installing CentOS8 with VirtualBox, an error occurs when restarting

# Until you install CentOS 8 Hello. It's been about half a month since I started programming Saya. I don't know right or left, but is Linux the natural OS for engineers? I heard the rumor that Not

Check Linux kernel version

What is the kernel version of the linux kernel source code cloned from git? A memo of the procedure to check when it happens. Check VERSION, PATCHLEVEL, SEBLEVEL at the beginning of Makefile (from

python C ++ notes

python ## Greatest common divisor Q: What is the greatest common divisor of 51 and 15? 1. 51 ÷ 15 = 3 too much 6 2. 15 ÷ 6 = 2 too much 3 3.6 ÷ 3 = 2 less than 0 A: 3!! ```python def GCD(m,n):

Source code of sound source separation (machine learning practice series) learned with Python

I wrote the beamforming code myself, but various methods are described. I thought that there was no good example to look for, but there was a good thing, so a memo [Sound source separation learne

Creating a data analysis application using Streamlit

# What is Streamlit This article explains how to use [Streamlit](https://www.streamlit.io/). Streamlit is a python framework that allows you to create front-end applications. Graphs created with Pa

What is bucket sort? Merideme and code example

# What is bucket sort? A sorting method that counts the number of each element, specifies the array number to insert that element, and inserts them in order. There are two arrays to prepare. ** (

What to do if you get a Permission denied (public key) error when trying to pull on Github

When I try to pull with Git hab and execute the command ![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/693241/0d1f393d-69c8-683a-b78f-a1c2a7d90bb2.png) ![image.png](ht

Are you having trouble with "pipenv.exceptions.ResolutionFailure"?

# pipenv error If you `pipenv install` a non-existent package, it will be written to the Pipfile and you will get an error when you do pipenv ~ thereafter. ``` #Frequent errors pipenv.exceptions.Res

Arch on lvm on luks build and initialization

# Overview In this article, we will create a logical volume with lvm on a partition encrypted with luks (dm-crypt) and build an Arch Linux desktop environment on it. ``` +--------------+-----------

MNIST matrix display

python==3.7.9 Keras==2.2.4 tensorflow==1.13.1 # Display mnist as an image ```python import urllib.request import tensorflow as tf import matplotlib.pyplot as plt import numpy as np #prox = ur

Install Python 3.9 on Ubuntu 20.04 (OS standard?)

# Introduction Install Python 3.9 on Ubuntu 20.04 LOG ### Installation ```shell-session # cat /etc/os-release NAME="Ubuntu" VERSION="20.04.1 LTS (Focal Fossa)" ID=ubuntu ID_LIKE=debian PRETTY_NA

The front engineer tried to automatically start go's API server with systemd quickly

I was told that it would be better to make it a service with systemd, so I tried it for the time being. ① Go build with the project file (sample in this case) ② Create app.service in etc / systemd

Basics of regression analysis

Data without context is just a list of numbers. In order to make good use of the data at hand, it is necessary to collect a wide variety of information such as the mechanism of phenomena behind the d

Implementation example of hostile generation network (GAN) by keras [For beginners]

## What I did in this article **-Minst image generation by GAN --Introducing the implementation method using keras ** ## Introduction Generative adversarial network, or GAN. I often hear that it

What to do when you get "I can't see the site !!!!"

Just looking at the title makes my heart squeaky ... I wrote a memo from my experience so far About half for myself # Indicators that can be used to investigate the cause ## HTTP status code https

Codeforces Round # 672 (Div. 2) Bacha Review (10/16)

# This time's results ![スクリーンショット 2020-10-16 14.38.42.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/331393/08e8d73e-fb18-5d64-4013-472956f7fddd.png) # Impressions of this

[Python] I forgot the order because there were too many return values. ..

I was reading "Effective Python 2nd Edition" and summarized what I searched for. ## Is this the order? Isn't this the case when writing Python? I have #### **`unpack.py`** ```python #This is rea

Python basics ②

Basic knowledge of Python ②. This is my study memo. Please do not excessive expectations. list - -Manage multiple data at once Example: ['orange','banana','apple'] -It is also possible to ma

[Python] How to use input ()

# What is input () __ Input __. # How to use input () As an example, write the code with 1 in the input. #### **`python`** ```python a = input() print(a) #1 #1 ``` As mentioned above, it can

Deep Learning with Shogi AI on Mac and Google Colab Chapter 12 3

[TOP PAGE](https://qiita.com/kazunoriri/items/d7875d7f1121edcc807a) uct_search() Roughly speaking, a method that selects nodes with a large UCB value and adds the total winning percentage. It was q

Create Django Todo list

Added the function to manage the Todo list for each facility! I was thinking of adjusting the input screen for shifts and creating a validation rule function, but it was quite difficult and I couldn

API implementation to toggle values in two ways (go)

## things to do The purpose is to practice to become Go's web framework Echo. Even if you toggle the value, I think there are cases where the bool value of the database is set to true <=> false, and

PyCryptodome AES encryption and decryption process memo

AES encrypted memo. environment Python3.7 pycryptodome 3.9.8 ## Source code ```python3 # -*- coding: utf-8 -*- from Crypto.Cipher import AES key = b"1234567890123456" data = b"hogehoge" #Charac

Visualize scikit-learn decision trees with Plotly's Treemap

this ![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/218449/fe43cf2b-a2c3-65bc-15b4-67502c8112d4.png) Do this: angel: ![image.png](https://qiita-image-store.s3.ap-north

ModuleNotFoundError: No module named'py4j'

# Conclusion **unsolved** # background In the Dockerfile ```dockerfile From jupyter/jupyter/pyspark-notebook:~~~~~~~~~ ``` Loading Pyspark as. # environment ``` Python 3.7.6 pyspark 2.4.5 ```

Draw Bezier curves with Go

# Draw Bezier curves with Go I would like to give a detailed explanation, but for the time being the source code ## Source code ```go package bezier import ( "math" ) type Point struct{ X,Y