[Python] Sample code for Python grammar
## Introduction I wrote the following program to study Python, I think there is a more efficient way to write, so I made this article so that I would like to hear the opinions of experts. If you a
Character code conversion of CSV file using Loop (Shift JIS to UTF8)
Suppose you have a CVS file with consecutive filenames like this: + brabra_01.csv + brabra_02.csv + brabra_03.csv + (...) + brabra_47.csv The character code of the original file is Shift-JIS, and
I tried to make creative art with AI! I programmed a novelty! (Paper: Creative Adversarial Network)
# Original paper https://arxiv.org/abs/1706.07068 # What thing? It's a little different from GAN. That is, the classifier also learns style. And the paper that the generator will be more creative t
Julia Quick Note [09] Function (1) Basics
### Function (1) Basics (Example of how to write) #### **`note09`** ```ruby function sum(a, b) return a + b end ◆ When return is omitted function sum(a, b) a + b end ◆ One-line displa
Since the font size and window size are large in Zoom for Linux, I made it smaller
# Trigger I thought that the default font would be big from some day, but I didn't have any trouble with talking and viewing the presentation slides, so I used it as it was. The other day, when I
Paper: Machine learning mimics the learning methods of multilingual children! (Visual Grounding in Video for Unsupervised Word Translation)
https://deepmind.com/research/publications/Visual-Grounding-in-Video-for-Unsupervised-Word-Translation # Abstract Multilingual concept mapping with visual base as a hint # What are the three good p
Various Linux commands
This is a memo for myself. It will increase from time to time. ## rm options --When doing rm, add -i and check yes / no ## ls options --- Add -l to display details
[CRUD] [Django] Create a CRUD site using the Python framework Django ~ 3 ~
# Series list (will be updated when all articles are completed) ## Create a view Django provides a generic view. There are CreateView, UpdateView, DeleteView, ListView, DetailView, etc. This tim
I made a bin picking game with Python
I made a game called a bin-picking game in Python. However, it is very weak because it only randomly decides how many to take ... # code #### **`BottlePickingGame.py`** ```py import random import
Create and return a CP932 CSV file for Excel with Chalice
# Introduction When creating a management system for Web applications, I often encounter the pattern "I want you to be able to download system data in a CSV file that can be opened in Excel". If yo
Sort of tuple array can be accelerated by specifying key (Python)
# Introduction When I was worried about "TLE even though it seems to be in time for the calculation amount ..." while devoting myself to the competition pro, it was discovered that the sort part of t
Solution for "Import Error: No module named requests"
# error contents ``` Traceback (most recent call last): File "main.py", line 1, in <module> import requests ImportError: No module named requests ``` # approach ``` sudo python3 -m pip install
How to resolve "No kernel of grammar Python found" error in Atom
# Introduction This is what to do if atom, Hydrogen, which worked normally until yesterday, gets a bright red error message saying `No kernel of grammar Python found` when you try to run it today.
Python basics ⑤
Basic knowledge of Python ⑤. It is my study memo. Please do not excessive expectations. Past posts - [Python basics](https://qiita.com/k-yasuhiro/items/c31b6370023e67e00aa9) [Python basics ②](h
Use shared memory with shared libraries
I wanted to share the data on the shared library between the processes that are attaching it, so I made a lot of trial and error, but I was a little addicted to it, so I will write it as an article.
A python script that imports a dated csv file into BigQuery as a time partition table
# background I want a python script that imports a csv file with a date in the file name into BigQuery, such as `xxxx_20200930.csv`, with a partition time. This time, I created it on the assumption
Web scraping with python + JupyterLab
# Introduction `JupyterLab` is an execution environment where you can easily touch` python`. # Environment ``` git clone https://github.com/takiguchi-yu/python-jupyterLab.git cd python-jupyterLab `
linux at command
linux at command Can be used unexpectedly! So make a note here. Command specification (end with ctrl + d) ```bash 22:59:18 root@localhost ~ [0] # at 23:30 at> touch 1.txt at> <EOT> job 10 at Thu O
pgmpy: Discrete Bayesian Network Trial-Inference
# Trigger Interested in meta-learning, graph neural networks, use of knowledge structures including use as prior knowledge, and knowledge storage. Relatedly, I was looking for a library to easily i
Workaround when Authentication Required is displayed when trying to view the HDD by USB booting Linux
・ Occurrence of cause When I installed the software that is Windows, the menu "Register for Windows service" appeared. Since the PC is under Active Directory, it says "Enter the password of an auth
Speech Recognition: Phoneme Prediction Part1 --ATR Speech dataset
# Target We have summarized the phoneme prediction using the Microsoft Cognitive Toolkit (CNTK). In Part 1, we will prepare for phoneme prediction. I will introduce them in the following order.
Codeforces Round # 600 (Div. 2) Bacha Review (10/21)
# This time's results  # Impressions of this
Implement recursive closures in Go
# Introduction Studying Go language version 2 means that I tried to study algorithms with Go. ## Recursive closure First of all, what is a closure, I will describe the sentence that I referred to b
[Go] How to create a custom error for Sentry
# Introduction The standard erorr of go v1.x is so simple that it often lacks the features you want. There are [`pkg / errors`](https://github.com/pkg/errors) etc. that make standard error easier t
AtCoder Grand Contest 048 Review
# This time's results  # Impressions of this time
Speech Recognition: Phoneme Prediction Part2 --Connectionist Temporal Classification RNN
# Target This is a continuation of phoneme prediction using the Microsoft Cognitive Toolkit (CNTK). In Part2, phoneme prediction is performed using the features and phoneme labels prepared in Part1
Real-time display of video acquired from webcam on Jupyter notebook (Python3)
[Reference (Python2)](https://medium.com/@kostal91/displaying-real-time-webcam-stream-in-ipython-at-relatively-high-framerate-8e67428ac522) 1. Get video from webcam with OpenCV 1. Convert color sp
Use OpenSeesPy regardless of OS or Python version
## (motivation) When I tried to use OpenSeesPy, the environment construction method differs depending on the OS, it can not be used depending on the Python version, or even if it can be used, the VS
[2020 version mac migration] migration to macos 10.15 Catarina Create a work environment from scratch without using an assistant (CUI edition)
I bought a MacBook Pro 2020. It's been about 3 years. I always want to keep the PC environment clean, but the best time to buy a new PC is. Even if I buy a new PC, I don't always use the migration
Linux command [ldconfig] LPIC learning memo
LPIC Learning Memo [ldconfig] A command for updating an existing library or placing a new library under a new folder for updating. Benefits of creating a library of program sources When there is