Dependency, generalization, implementation, association, aggregation and combination in UML class diagram

Article directory UML diagrams and other diagrams 1 Overview 2. Class diagram 3. Class Diagram – Dependence 4. Class Diagram – Generalization 5. Class Diagram–Implementation 6. Class Diagram – Association 7. Class Diagram – Aggregation 8. Class Diagram – Composition 9. Summary This blog post is compiled based on the course taught by former Shang […]

11. Template generalization, template specialization, number of bytes occupied, inheritance to implement template expansion, using loop named expansion variable parameters

Template generalization, template specialization, number of bytes occupied, inheritance to implement template expansion, using loop named expansion variable parameters Template generalization template specialization Fully specialized template Obtain the number of bytes occupied by a type through template partial specialization Obtain the number of bytes occupied by a type through template partial specialization and macros …The […]

BFS, DFS, memoized search, pruning – generalization +/improve

P3496 [POI2010] GIL-Guilds P3496 [POI2010] GIL-Guildshttps://www.luogu.com.cn/problem/P3496 #include <bits/stdc++.h> using namespace std; const int N=2e6 + 10; int n,m,x,y; int vis[N],color[N]; int h[N],to[N],nxt[N],t; void add(int u,int v) { to[ + + t]=v; nxt[t]=h[u]; h[u]=t; } void dfs(int x) { for(int i=h[x];i;i=nxt[i]) color[to[i]]=color[x]%2 + 1; } int main() { cin>>n>>m; for(int i=1;i<=m;i ++ ) { cin>>x>>y; add(x,y); […]

ML-Agents (4) 3DBall Supplement の Introduction of Generalization

[ps.] I found that the content in “ will be changed into one line in the editor of Unity. If it looks strange, please move to the blog garden to check: https://www.cnblogs.com/gentlesunshine/p/12602404.html I probably finished studying the 3DBall example two days ago, and the following code was used in the initialization: <pre> public class Ball3DAgent […]

Model generalization (1) Image augmentation and its application on the CIFAR10 dataset

Model generalization (1) Image augmentation and its application on CIFAR10 dataset import numpy as np import torch import torchvision from PIL import Image from torch import nn from torch.nn import functional as F from torch.utils import data from torchvision import transforms from matplotlib import pyplot as plt 1. Image augmentation__reversal and cropping def set_figsize(figsize=(3.5, 2.5)): […]

Relationships between classes – composition, aggregation, association, generalization, dependency

Article directory background combination What is a combination? example How to represent symbols in UML class diagrams polymerization What is aggregation? example How to represent symbols in UML class diagrams associate What is an association? How to represent symbols in UML class diagrams Generalization What is generalization? How to represent symbols in UML class diagrams […]

Analysis of the problem of missing parameters of the result object returned by Dubbo generalization call

Recently, I am using jvm-sandbox-repeater to do drainage playback, and to do corresponding playback for dubbo traffic. It turns out that there is a problem that the return value of dubbo interface recording is different from the return value of playback. Troubleshooting Let’s first look at where the difference is in the return The left […]

[Work Notebook] A small example of apache-dubob generalization call

Table of Contents wedge Preparation create provider Create a generic call test module Quote dubbo dependencies Create metadata class Create a generalized call Controller Write a generic call method Example 1: Single parameter, no generic call Code Test parameters result Example 2: Single parameter, generic call Code Test parameters result Example 3: Single parameter, list […]