Instances of all methods in the list type (except sort) and explanations (called through help (list))

1. Overview After using help (list) and running it, you can see the following methods: append, clear, copy, count, extend, index, insert, pop, remove, reverse, a total of ten methods. Next, I will give examples one by one. explain. 2. Examples and explanations 1.append: Append object to the end of the list. (Append object to […]

Kubernetes cluster expansion

1. Please explain the basic concepts and principles of Kubernetes cluster expansion. Basic concepts and principles of Kubernetes cluster expansion: Kubernetes is an open source container orchestration platform used to automate the deployment, scaling and management of application containers. In Kubernetes, cluster expansion refers to increasing the computing resources (such as CPU, memory, etc.) in […]

SolvedValueError: Found array with dim 4. TSNE expected <= 2.

Problem description Traceback (most recent call last): File “/home/visionx/nickle/temp/SimCLR/linear_evaluation.py”, line 229, in ).fit_transform(all_nodes_unnormalized_scores) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/home/visionx/anaconda3/envs/simclr-pt/lib/python3.11/site-packages/sklearn/utils/_set_output.py”, line 157, in wrapped data_to_wrap = f(self, X, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/home/visionx/anaconda3/envs/simclr-pt/lib/python3.11/site-packages/sklearn/base.py”, line 1152, in wrapper return fit_method(estimator, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/home/visionx/anaconda3/envs/simclr-pt/lib/python3.11/site-packages/sklearn/manifold/_t_sne.py”, line 1111, in fit_transform embedding = self._fit(X) ^^^^^^^^^^^^ File “/home/visionx/anaconda3/envs/simclr-pt/lib/python3.11/site-packages/sklearn/manifold/_t_sne.py”, line 841, in _fit X […]

Synchronization experiment of operating system processes

1. Experimental purpose (1) Master the basic concepts and properties of processes and threads; (2) Implement multi-threaded ticketing: simulate multiple ticketing windows (there are 2 windows here), and each window can sell tickets at the same time. Through multi-threading, ticketing operations can be performed concurrently to ensure thread safety; (3) Provide user interface: Create a […]

Installation and configuration explanation of Log4j and Log4j2

What is a log? A log is a file that records detailed information about events or behaviors that occur when a system or application is running. It usually includes information such as timestamp, event type, event description, etc., so that troubleshooting, performance optimization, security auditing, etc. can be performed when needed. Logs can help developers […]

VSCode runs c++ program (operation + detailed explanation + json file configuration detailed explanation)

Preface: Because the quality of online tutorials varies, I felt very confused when I first came into contact with this thing. I hereby write this blog to help my friends solve the problem. Table of Contents 1. Operation details 1Download VSCode code editor 2Install C/C++ extension 3Install the MinGW-w64 compiler 4Add path 5 Test whether […]

RuntimeError: Sizes of tensors must match except in dimension 1. Expected size 58 but got size 57 fo

An error occurred: When using yolo v5n for network training, the input size used is 900*900. When connecting the Feature Map of the 11th layer and the 6th layer at the 12th layer Concat, there is a problem of different dimensions. After running, the following error message appears: RuntimeError: Sizes of tensors must match except […]

Explosive performance! Python multi-process mode implements multi-core CPU parallel computing

Article directory Preface 1. Multi-process mode in Python 2. Methods to improve program execution efficiency 1. Multiple processes execute tasks concurrently 2. Process pool 3.Message queue 4. Shared memory 5.Asynchronous IO Summarize About Python technical reserves 1. Learning routes in all directions of Python 2. Python basic learning video 3. Excellent Python learning books 4. […]