Calculating averages or sums is often used in environmental data analysis. This post collects some examples of computing the average (or sum) of xarray data based on my program for processing global climate change datasets. The example show how to calculate monthly mean from daily data. How to calculate spatial average over a sub region ..
Tag : worknotes
This example pytho program define the popular activation functions and display the functions. Code: import numpy as np import matplotlib.pyplot as plt #——————————- # define the activation functions def relu(x): v=x.copy() v[x=0]=x[x>=0] v[x=alpha*x] ..
This examples show how to convert svg files to png files with white background or transparent background. You can convert single file, you can also convert many files together quickly. Create a file which includes all svg file names, and create a file which includes all output png file names. It’s better put the svg ..
In this post, we provide 100 text prompt examples for creating beautiful and gorgeous women’s images using various AI art generators such as NightCafe, DALL-E 2, Midjourney, Dream by WOMBO, craiyon, DeepDreamGenerator, and starry AI. With these prompts, users can quickly improve their skills in AI image generation and create stunning images.I will continue to ..
The power of text prompts in the world of art is undeniable. When used correctly, they can unlock the full potential of an artist and result in stunning and captivating images of animals. This post explores the importance of choosing the right artist when creating a text prompt, and how it can elevate the final ..
The following code is used to count the order of the date of February 29 in leap years for a period. import sys import warnings if not sys.warnoptions: warnings.simplefilter(‘ignore’) #Process data import numpy as np import matplotlib.pyplot as plt #Process data import numpy as np import xarray as xr #Writing data files import pandas as ..
The maps posted here are generated based on SPAM 2010 v2.0 data. These maps are for my own reference only when conducting climate change risk assessment studies. Please do not cite them in any academic..
Global maps of major crops for reference. These maps are plotted based on ISIMIP2b’s land use data. for the period of 2005-2014. Only rainfed land use for crops is mapped.These maps are for personal reference only, please do not ..
Activation function is a very important component of machine learning and deep learning. There are three types of Activation Functions: Binary Step Function; Linear Activation Function and Non-Linear Activation Functions. Available activation functions in Keras include relu, sigmoid, softmax, softplus, softsign, tanh, selu, elu and exponential. In addition,user can also create custom activation function.Below is an ..
Group DataFrame using a mapper or by a Series of columns.Return a GroupBy object, grouped by values in column named “col”.Grouping and aggregation functions to help you to learn features of your dataset, like the sum, mean, or average value of a group of elements. The sample code below may help. Prepare data import pandas as ..