Chapter 13.5 dynamic memory management exercises and summary in C++ Primer
13.5 dynamic memory management class
The best way to manage dynamic memory in a class is to use containers or smart pointers, but maybe if we want to design a set of libraries ourselves, we need to keep the performance of this library at a better level. At this time, we may need to use some lower leve ...
Posted by maxudaskin on Tue, 25 Feb 2020 22:52:03 -0800
Java self study Lambda aggregation operation
Aggregation operation of java collection
Step 1: traverse data in the traditional way and aggregate operation way
The traditional way of traversing data is to use the for loop, then judge the conditions, and finally print out the data that meets the conditions
for (Hero h : heros) {
if (h.hp > 100 && h.damage < 50)
System ...
Posted by rtsanderson on Sat, 22 Feb 2020 21:09:11 -0800
Java language introduction ๐ 02 | object oriented and common class ๐ day10 | interface, polymorphic
Chapter I interface
1.1 Interface Overview and life examples
Interface is a common standard
As long as it conforms to the standard, it can be used by all
1.2 basic format of interface definition
Interface is a kind of reference data type, and the most important content is abstract method.
D ...
Posted by nikes90 on Fri, 21 Feb 2020 04:08:02 -0800
What's the use of Collection and Iterable interface
From today on, I want to sum up again what java has to do with collections. It's convenient for me to review. Besides, spring moves are also here. It's terrible. I want to learn them seriously. I can't learn from the epidemic. It's beautiful.
Well, there's no more nonsense. Let's take a look at a pictur ...
Posted by IronicSoul on Wed, 19 Feb 2020 03:12:52 -0800
Python 3 standard library: difflib difference calculation tool
1. difflib difference calculation tool
This module provides classes and functions for comparing sequences. For example, it can be used to compare files and produce different information in various formats, including HTML and context, as well as differences in uniform formats. For a comparison of directories and files, see the filecmp module.
cl ...
Posted by meltingpoint on Mon, 17 Feb 2020 19:51:07 -0800
Over fitting and under fitting of hands-on deep learning
It has been said that the power of DL lies in its fitting ability. As long as you can give the curve, its equation can be expressed by a set of neural network. However, this set of neural network needs enough data for training, which leads to the concept of over fitting and under fitting. When the neur ...
Posted by cybersurfur on Mon, 17 Feb 2020 02:00:01 -0800
Hands on deep learning of Python task04
The main contents of this lesson are machine translation and related technologies, attention mechanism and Seq2seq model, Transformer
1, Machine translation and related technologies
Machine translation: when a text is automatically translated from one language to another, neural network is often used ...
Posted by ramus on Mon, 17 Feb 2020 00:34:41 -0800
Python notes (15): anonymous functions and @ property
(1) Anonymous function
You can use anonymous functions when you don't want to display the defined functions.
1 def f(x):
2 return x*x
3
4 #Assign anonymous functions to a variable
5 result = lambda x:x*x
6
7 print(result(5))
8 print(f(5))
From the output, we can see that lambda x:x*x is actually:
1 def f(x):
2 return x*x
The lambd ...
Posted by chantown on Sat, 15 Feb 2020 08:29:52 -0800
[Java_22] JDK New
JDK 1.8 New
1. Functional interface
1. Functional interface
(1) Concepts
*Interfaces with only one abstract method
(2) Format
@FunctionalInterface //Use this comment to determine if the interface is a functional interface.
public class class name {
public abstract return value method name (parameter list);
}
2. Funct ...
Posted by starnol on Thu, 13 Feb 2020 12:55:40 -0800
[deep learning] village to network -- on the new features of tensorflow Eagle execution mechanism
Article directory
Preface
Convolution directly using operation
Automatically calculate gradient (derivative)
Calculate the gradient of all parameters
Calculate the gradient of all variables
Using Python program flow to control model flow
Automatic optimization
Preface
This article is [deep lea ...
Posted by bubatalazi on Thu, 13 Feb 2020 02:09:50 -0800