<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[s0302017的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/s0302017</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; s0302017]]></copyright><item><title><![CDATA[pyhton_基尼指数计算]]></title><link>https://blog.csdn.net/s0302017/article/details/107063700</link><guid>https://blog.csdn.net/s0302017/article/details/107063700</guid><author>s0302017</author><pubDate>Wed, 01 Jul 2020 14:45:29 +0800</pubDate><description><![CDATA[1.定义：基尼指数（基尼不纯度）：表示在样本集合中一个随机选中的样本被分错的概率。

  注意： Gini指数越小表示集合中被选中的样本被分错的概率越小，也就是说集合的纯度越高，反之，集合越不纯。


def gini_index_single(a,b):
    single_gini = 1 - ((a/(a+b))**2) - ((b/(a+b))**2)
    return round(single_gini,4)

# 求取基尼指数
def gini_index(a,b,c,d,e,f...]]></description><category></category></item><item><title><![CDATA[ANSYS MESHING网格种类及区别]]></title><link>https://blog.csdn.net/s0302017/article/details/107063628</link><guid>https://blog.csdn.net/s0302017/article/details/107063628</guid><author>s0302017</author><pubDate>Wed, 01 Jul 2020 14:44:21 +0800</pubDate><description><![CDATA[在ANSYS网格划分中，存在多种网格划分方法，如补片独立、补片协调、多区等方法，不同的划分方法有着不同的功能和结果，在一个复杂结构的网格划分中，不同的网格划分方法通过扮演不同的角色，来解决网格质量问题。下面介绍几种网格划分方法：



①补片协调算法（Patch Conforming）

补片协调算法是四面体网格类型中的一种算法，也是MESHING默认的一种算法，这种方法计算速度快，但网格质量一般。



②补片独立算法（Patch Independent）

补片独立算法也是四面体算法中的一...]]></description><category></category></item><item><title><![CDATA[fluent动网格profile文件的编写]]></title><link>https://blog.csdn.net/s0302017/article/details/107063584</link><guid>https://blog.csdn.net/s0302017/article/details/107063584</guid><author>s0302017</author><pubDate>Wed, 01 Jul 2020 14:40:47 +0800</pubDate><description><![CDATA[在fluent中指定部件运动主要有两种方式：profile文件和UDF宏文件。当运动方程已知时，利用UDF宏指定运动非常方便，而profile方法则适合当需要指定的运动无任何函数关系的情况。

标准瞬态Profile文件可表述为以下格式：

（（profile-name transient n periodic？）

(field_name_1 a1 a2 a3…an)

(field_name_2 b1 b2 b3…bn)

.

.

.

(field_name_r r1 r2 r3 …rn)

)
]]></description><category></category></item><item><title><![CDATA[Python绘图布局、图例说明、边界]]></title><link>https://blog.csdn.net/s0302017/article/details/107063559</link><guid>https://blog.csdn.net/s0302017/article/details/107063559</guid><author>s0302017</author><pubDate>Wed, 01 Jul 2020 14:39:54 +0800</pubDate><description><![CDATA[当绘画完成后，会发现X、Y轴的区间是会自动调整的，并不是跟传入的X、Y轴数据中的最值相同。为了调整区间可以使用下面的方式：

ax.set_xlim([xmin, xmax]) #设置X轴的区间

ax.set_ylim([ymin, ymax]) #Y轴区间

ax.axis([xmin, xmax, ymin, ymax]) #X、Y轴区间

ax.set_ylim(bottom=-10) #Y轴下限

ax.set_xlim(right=25) #X轴上限

具体效果如...]]></description><category></category></item><item><title><![CDATA[BP神经网络及其Python实现]]></title><link>https://blog.csdn.net/s0302017/article/details/107063481</link><guid>https://blog.csdn.net/s0302017/article/details/107063481</guid><author>s0302017</author><pubDate>Wed, 01 Jul 2020 14:37:54 +0800</pubDate><description><![CDATA[import numpy as np
def Sigmoid( v ):
    y = 1 / ( 1 + np.exp( -v ) )
    return y
def TrainWByBP( W1, W2, X, D ):
    alpha = 0.9
    [ M, N ] = np.shape( X ) 
    for i in range( M ):
        #Forword propagation
        x = np.array( X[i...]]></description><category></category></item><item><title><![CDATA[使用python对Apriori算法进行学习]]></title><link>https://blog.csdn.net/s0302017/article/details/106763390</link><guid>https://blog.csdn.net/s0302017/article/details/106763390</guid><author>s0302017</author><pubDate>Mon, 15 Jun 2020 15:24:34 +0800</pubDate><description><![CDATA[Apriori的原理解释：假设我们在经营一家商品种类并不多的杂货店，我们对那些经常在一起被购买的商品非常感兴趣。我们只有4种商品：商品0，商品1，商品2和商品3。那么所有可能被一起购买的商品组合都有哪些？这些商品组合可能只有一种商品，比如商品0，也可能包括两种、三种或者所有四种商品。我们并不关心某人买了两件商品0以及四件商品2的情况，我们只关心他购买了一种或多种商品


from numpy import *

def loadDataSet():
    return [[1, 3, 4], [2, 3.]]></description><category></category></item><item><title><![CDATA[Python break语句]]></title><link>https://blog.csdn.net/s0302017/article/details/106763375</link><guid>https://blog.csdn.net/s0302017/article/details/106763375</guid><author>s0302017</author><pubDate>Mon, 15 Jun 2020 15:23:44 +0800</pubDate><description><![CDATA[Python break语句，就像在C语言中，打破了最小封闭for或while循环。
break语句用来终止循环语句，即循环条件没有False条件或者序列还没被完全递归完，也会停止执行循环语句。
break语句用在while和for循环中。
如果使用嵌套循环，break语句将停止执行最深层的循环，并开始执行下一行代码。
 如下例：
for letter in 'Python': # 第一个实例
 if letter == 'h': 
break 
print '当前字母 :', letter 
var =.]]></description><category></category></item><item><title><![CDATA[python list列表添加元素]]></title><link>https://blog.csdn.net/s0302017/article/details/106763354</link><guid>https://blog.csdn.net/s0302017/article/details/106763354</guid><author>s0302017</author><pubDate>Mon, 15 Jun 2020 15:23:07 +0800</pubDate><description><![CDATA[Python中使用+运算符可以将多个序列连接起来；列表是序列的一种，所以也可以使用+进行连接，这样就相当于在第一个列表的末尾添加了另一个列表。



language = ["Python", "C++", "Java"]

birthday = [1991, 1998, 1995]

info = language + birthday



print("language =", language)

print("birthday =", birthday)

print("info =", in..]]></description><category></category></item><item><title><![CDATA[solidworks静力学分析概述]]></title><link>https://blog.csdn.net/s0302017/article/details/106763335</link><guid>https://blog.csdn.net/s0302017/article/details/106763335</guid><author>s0302017</author><pubDate>Mon, 15 Jun 2020 15:22:07 +0800</pubDate><description><![CDATA[在之前的文章中，我们介绍了solidworks的流体分析模块，本期我们将介绍solidworks的静力学分析模块。静力学分析模块是SOLIDWORKS Simulation插件下的一个子分析模块，这个分析插件还可进行热力分析、频率分析、跌落测试和非线性分析等有限元分析。

步骤一：新建一个要分析的模型：



步骤二：首先启动SOLIDWORKS Simulation插件：



启动后如图所示：



步骤三：新建静力学分析算例





步骤四：为模型添加固定载荷



步骤五：为模型添加外部载荷


]]></description><category></category></item><item><title><![CDATA[python卷积代码]]></title><link>https://blog.csdn.net/s0302017/article/details/106763296</link><guid>https://blog.csdn.net/s0302017/article/details/106763296</guid><author>s0302017</author><pubDate>Mon, 15 Jun 2020 15:20:55 +0800</pubDate><description><![CDATA[import struct
import matplotlib.pyplot as plt
import  numpy as np
dateMat = np.ones((7,7))
kernel = np.array([[2,1,1],[3,0,1],[1,1,0]])
def convolve(dateMat,kernel):
    m,n = dateMat.shape
    km,kn = kernel.shape
    newMat = np.ones(((m - km + 1),(n - .]]></description><category></category></item><item><title><![CDATA[模态分析结果的输出实例]]></title><link>https://blog.csdn.net/s0302017/article/details/106625198</link><guid>https://blog.csdn.net/s0302017/article/details/106625198</guid><author>s0302017</author><pubDate>Mon, 08 Jun 2020 17:44:57 +0800</pubDate><description><![CDATA[/clear,start 

mass=83500 

/prep7 

k,1,0,0,0 

k,2,10000,0,0 

lstr,1,2 

et,1,beam44 

et,2,mass21 

R,1,186160,178980000000,56238000000,1278,680,128980000000, 

RMODIF,1,21,1278,680, 

RMODIF,1,25,76160,110000,0,0,7.0678e-009,0, 

*do,i,1,5 

j=i*1000 ]]></description><category></category></item><item><title><![CDATA[使用python对决策树算法进行学习]]></title><link>https://blog.csdn.net/s0302017/article/details/106625175</link><guid>https://blog.csdn.net/s0302017/article/details/106625175</guid><author>s0302017</author><pubDate>Mon, 08 Jun 2020 17:43:57 +0800</pubDate><description><![CDATA[#-*-coding:utf-8-*-
from math import log
import operator

def calcShanonEnt(dataSet):
    '''
    计算给定数据集的香农熵
    :param dataSet:
    :return:shanonEnt
    '''
    numEntries = len(dataSet)
    labelCounts={}
    for featVec in dataSet:
        currentLab.]]></description><category></category></item><item><title><![CDATA[Python函数定义和调用]]></title><link>https://blog.csdn.net/s0302017/article/details/106625127</link><guid>https://blog.csdn.net/s0302017/article/details/106625127</guid><author>s0302017</author><pubDate>Mon, 08 Jun 2020 17:42:07 +0800</pubDate><description><![CDATA[Python中函数的应用非常广泛，比如 input() 、print()、range()、len() 函数等等，这些都是 Python 的内置函数，可以直接使用。

除了可以直接使用的内置函数外，Python还支持自定义函数，即将一段有规律的、可重复使用的代码定义成函数，从而达到一次编写、多次调用的目的。如len() 函数，通过它我们可以直接获得一个字符串的长度，如果没有 len() 函数，要想获取一个字符串的长度，可用如下代码：

n=0

for c in "http://c.biancheng.net]]></description><category></category></item><item><title><![CDATA[abaqus钻头钻进模拟]]></title><link>https://blog.csdn.net/s0302017/article/details/106625068</link><guid>https://blog.csdn.net/s0302017/article/details/106625068</guid><author>s0302017</author><pubDate>Mon, 08 Jun 2020 17:40:47 +0800</pubDate><description><![CDATA[在之前的文章中，笔者介绍了二维切削的模拟方法，本次笔者将介绍三维钻头钻进岩石的模拟方法。

步骤一：准备模型



由于在abaqus中绘图和装配比较繁琐，笔者选择在solidwork中提前建好模型，并进行装配，再以x.t格式存储和导入abaqus。

步骤二：材料属性的设置

材料属性的设置比较重要，它直接影响到模拟结果的准确性，由于本次是做算例讲解，为了简便仅给出基础数据：

岩石属性：



密度：2.79e-009；

弹性：杨氏模量：70000，泊松比：0.33

塑性：



钻头属性：

传导]]></description><category></category></item><item><title><![CDATA[TensorFlow2.0代码案例]]></title><link>https://blog.csdn.net/s0302017/article/details/106625029</link><guid>https://blog.csdn.net/s0302017/article/details/106625029</guid><author>s0302017</author><pubDate>Mon, 08 Jun 2020 17:39:07 +0800</pubDate><description><![CDATA[import tensorflow as tf
import numpy as np
input_xs = np.random.rand(1000)
input_ys = 3 * input_xs + 0.217
weight = tf.Variable(1., dtype=tf.float32, name="weight")
bias = tf.Variable(1., dtype=tf.float32, name="bias")

def model(xs):
    logits = tf.mult.]]></description><category></category></item><item><title><![CDATA[陶瓷杆撞击铝板的例子]]></title><link>https://blog.csdn.net/s0302017/article/details/106485469</link><guid>https://blog.csdn.net/s0302017/article/details/106485469</guid><author>s0302017</author><pubDate>Tue, 02 Jun 2020 00:26:46 +0800</pubDate><description><![CDATA[APDL：
/filename,barplate 
/title,Impact Of A Bar Into A Plate 
/PREP7 
/view,,1,2,3 
/plopts,info,1 
/pbc,all,1 
/pnum,mat,1 
/num,1 
ET,1,SOLID164 
! --- Enter Ceramic Material Properties For Bar 
mpmod,1,1 
mp,ex,1,330e9 
mp,nuxy,1,.24 
mp,dens,1,8400 
.]]></description><category></category></item><item><title><![CDATA[使用python对信息熵进行计算]]></title><link>https://blog.csdn.net/s0302017/article/details/106485459</link><guid>https://blog.csdn.net/s0302017/article/details/106485459</guid><author>s0302017</author><pubDate>Tue, 02 Jun 2020 00:25:59 +0800</pubDate><description><![CDATA[在机器学习中的决策树类算法中主要依靠信息熵的大小来选择重要的特征属性作为节点换分数据集从而获得训练结果


#-*-coding:utf-8-*-
from math import log
import operator

def calcShanonEnt(dataSet):
    '''
    计算给定数据集的香农熵
    :param dataSet:
    :return:shanonEnt
    '''
    numEntries = len(dataSet)
    labelCou]]></description><category></category></item><item><title><![CDATA[Python for循环语句]]></title><link>https://blog.csdn.net/s0302017/article/details/106485440</link><guid>https://blog.csdn.net/s0302017/article/details/106485440</guid><author>s0302017</author><pubDate>Tue, 02 Jun 2020 00:25:07 +0800</pubDate><description><![CDATA[Python for循环可以遍历任何序列的项目，如一个列表或者一个字符串。

语法：

for循环的语法格式如下：


for iterating_var in sequence:

 statements(s)


实例

for letter in 'Python': # 第一个实例

print '当前字母 :', letter

fruits = ['banana', 'apple', 'mango']

for fruit in fruits: # 第二个实例

print '当前水果 :'...]]></description><category></category></item><item><title><![CDATA[Python算术运算符用法]]></title><link>https://blog.csdn.net/s0302017/article/details/106485416</link><guid>https://blog.csdn.net/s0302017/article/details/106485416</guid><author>s0302017</author><pubDate>Tue, 02 Jun 2020 00:24:16 +0800</pubDate><description><![CDATA[print()函数使用以%开头的转换说明符对各种类型的数据进行格式化输出。



+ 加法运算符

加法运算符很简单，和数学中的规则一样：

m = 10

n = 97

sum1 = m + n

x = 7.2

y = 15.3

sum2 = x + y

print("sum1=%d, sum2=%.2f" % (sum1, sum2) )

运行结果：

sum1=107, sum2=22.50



拼接字符串

当+用于数字时表示加法，但是当+用于字符串时，它还有拼接字符串（将两个字符..]]></description><category></category></item><item><title><![CDATA[solidworks流体模拟分析概述]]></title><link>https://blog.csdn.net/s0302017/article/details/106485400</link><guid>https://blog.csdn.net/s0302017/article/details/106485400</guid><author>s0302017</author><pubDate>Tue, 02 Jun 2020 00:23:11 +0800</pubDate><description><![CDATA[Solid works是一款极为简便的三维建模软件，同时该软件又集合了运动分析、静力学分析和流体力学分析等模块。本次我们将讲解solidworks流体分析模块。

首先我们新建一个流道模型：



然后加载solidworks流体分析模块：





然后将流道两端封堵，创建封盖：



通过向导创建流体分析项目：







通过向导设置单位、流体性质、传热方式等。设置完成后即可进入流体分析设置，软件会自动判断计算的流体区域，当然也可通过拖动滚动条自行设置计算域。



在流体分析设置中，我们主要设计流]]></description><category></category></item></channel></rss>