Specify your own class in class argument and return type annotation in Python
## Cannot specify own class in type annotation #### **`list_node.py`** ```python class ListNode: def __init__(self, val: int, next: ListNode): self.val = val self.next = next ``
I searched about Pynamodb
# What is Pynamodb A wrapper library for boto3. Writing in boto3 makes things complicated. In [Documentation](https://pynamodb.readthedocs.io/en/latest/tutorial.html#defining-a-model), Pynamodb sup
Basic processing of librosa
## Basic processing of librosa ### import ``` import librosa ``` ### Data read ``` y,sr = librosa.load(file, sr=None) #y is the amplitude #sr is the sampling rate ``` ### Waveform drawing ``` fig
Making from scratch Deep Learning ❷ An amateur stumbled Note: Chapter 6
# Introduction This is a memo of what I stumbled upon in Chapter 6 of ["Deep Learning from scratch ❷ --- Natural language processing"](https://www.oreilly.co.jp/books/9784873118369/), which I suddenl
Numerical summary of data
I will write about numerical summarization, which is the basic summarization method for data analysis. # Summary of one-dimensional data ``` import numpy as np x=np.array([1,2,3,4.5,5,6.5,7,8,9,10
Nowadays molecular competition (1)
## Overview Challenge molecular competitions for practicing RDKit and machine learning. Data assessment for the time being. ## reference Basically my work memo. Since it was last year's competitio
Allow sudo to run apt without a password
# Allow sudo to run apt without a password ``` echo $USER ALL=NOPASSWD: /usr/bin/apt | sudo tee -a /etc/sudoers ```
My python environment memo
```python katayamashunyuunoMacBook-Pro:~ katayamashunsuke$ which python /Users/katayamashunsuke/.pyenv/shims/python #I'm using pyenv's python katayamashunyuunoMacBook-Pro:~ katayamashunsuke$ which pi
Behavior when SIGEV_THREAD is set in sigev_notify of sigevent with timer_create (C language)
## background In the embedded system I am currently developing, various methods are used for periodic processing. Among them, the method of setting SIGEV_THREAD in sigev_notify of the sigevent struct
(Java, JavaScript, Python) Comparison of string processing
# Java, JavaScript, Python processing comparison I recently started studying JavaScript and Python. As a summary of what I learned, I would like to write an article comparing the processing of Java
[Super easy] Simultaneous face recognition and facial expression recognition in real time with Python and OpenCV!
 <h2> Preparation </h2> See also: [Perception
Algorithm learned with Python 13th: Tower of Hanoi
# #Algorithm learned in Python <Tower of Hanoi> ## Introduction Implement the basic algorithm in Python to deepen your understanding of the algorithm. The 13th edition deals with the Tower of Hanoi
Wagtail Recommendations (2) Let's define, edit, and display a page
# Introduction From this time, I will divide it into several times and try to actually build a simple CMS with Wagtail. As a goal, I imagined a site that hosts pages for multiple research projects a
Looking back on WEB apps and smartphone apps created by personal development that started in 2020
# Preface Around the beginning of 2020, I started doing personal development, which I had been postponing because I thought I would do it someday. I wish I could make one or two web apps, but I mad
[Python] Dynamic programming TDPC D
[TDPC D](https://atcoder.jp/contests/tdpc/tasks/tdpc_dice) Since it is difficult to process 6 = 2 * 3 to solve as a probability problem (number of cases) in high school mathematics, the method of in
Sorting of multidimensional associative arrays
[Sort a little complicated dictionary object in Python \-From the afternoon → Overclock](http://nemupm.hatenablog.com/entry/2014/08/06/223026) [Basic Perl sort \-Qiita](https://qiita.com/otaka/item
Made python available on macOS
### background I wanted to use python on macOS Big Sur. (I wanted to use a command called CuteR: [I made a QR code image with CuteR](https://qiita.com/hann-solo/items/fe0e031b3d0b5be7e0cd)) Howev
I want to find the shortest route to travel through all points
# Continuation of the last time In [Previous article](https://qiita.com/canonno/items/de3a8f1a585d4b83a54b), I read the code to find the shortest path from the start point to the end point when I too
Analyze pixivpy
I'm about to write it, but I will publish it I will fix it if I have time # at first I love pixivpy, but I don't see much explanation on domestic sites because it was developed in China. So I wou
Deb package development with Git: (Part 1) Creating a stray package with the minimum configuration
I investigated how to make a deb package with the motive of wanting to manage my own utility with apt. If you want to do it seriously, you have to gather various information, but I will write it ste
Supports JIS keyboard on Kali Linux ver2020.4
# Overview How to change the default keyboard layout of Kali Linux 2020.4 from US to JIS. ## Method 1. Enter Keyboard in the Desktop Application search window to open the Keyboard app. ![desktop-s
Let's summarize Squid
squid.conf# |squid.conf|Explanation| |---|---| |http_port|port number| |visible_hostname|hostname| |hierarchy_stoplist|Character string that does not use cache| |maximum_object_size|Maximum cac
For those who will take AI, ML, and data scientist school courses from now on
** Nice to meet you, I'm Momo-chan's dad. ** ** It seems that the title suddenly seems to be great, but I have taught more than 200 people at a certain school so far. As a mentor widely, including
Draw a graph that can be moved around with HoloViews and Bokeh
We are planning to introduce python in the workplace. If I was looking for something I couldn't do with Excel and something I could do with Python, You can draw ** interactive graphs ** using a lib
How to prepare the execution environment of the ultra-lightweight Python "Python embeddable" (about 15MB) Memo (until the introduction of pip and other libraries (eg psutil))
Ultra-lightweight Python "** Python embeddable **". An ultra-lightweight Python execution environment of about 8MB for download compressed file .zip and about 16MB for decompression. I was able to co
3. Natural language processing with Python 5-3. Emotion value analysis of Japanese sentences [Word emotion polarity value correspondence table]
* In Japanese, there are three types of emotion value dictionaries that can be used to obtain negative and positive polarity values in sentiment analysis. * [Word Emotion Polarity Correspondence T
Linux made with Petalinux did not boot with Zybo-Z7-10
# Overview Linux made with petalinux 2020.2 did not boot with Zybo-Z7-10. I'm basically doing it according to the site I'm referring to, but after getting an error like `server ip not set` during bo
Solve AtCoder Beginner Contest 100-102
AtCoder Beginner Contest 100 A - Happy Birthday! E869120 You and square1001 Your 16th birthday is coming soon. Therefore, Mr. Takahashi of the Kingdom of AtCoder gave them a circular cake with radia
[Python] PyCharm environment settings (installation, interpreter settings, addition of packages) Mac environment
<!-- wp:paragraph --> <P> Hello, this is Kaoru. </p> <!-- /wp:paragraph --> <!-- wp:paragraph --> <p> This time, it is a GUI tool <a href="https://www.jetbrains.com/ja-jp/pycharm/" target="_blank"
Store the stock price scraped by Python in the DB
# 0. Introduction ** This is the third (final) ** of the summary article that I investigated for the purpose of using python for investment utilization. As a omnibus so far, I will write a series of