摘要:
Wpf添加资源字典 1.新建一个字典,设置好名称空间,key,TargetType等。 例如添加一个ListBox的资源字典 <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" x 阅读全文
摘要:
1 Form1 form = new Form1(); 2 var page = new TabPage("Form2"); 3 tab1.Controls.Add(page); 4 form.TopLevel = false; 5 form.ControlBox = false; 6 form.B 阅读全文
摘要:
1 conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ 2 conda config --add channels https://mirrors.tuna.tsinghua.edu 阅读全文
摘要:
转载自 https://blog.csdn.net/liuqinghui1990/article/details/76943922?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.c 阅读全文
摘要:
一。贝叶斯基本理论 二。看一个简单的例题,只有一个特征(长度)。 对于贝叶斯方法来说,首先要知道类别的先验概率,和类概率。 对于上述例题来说,p(x=10|w1)和p(x=10|w2)是已知的,但是拿到别的例子来说,这个是需要我们自己计算的。通过多个样本,计算类概率密度,其实就是训练的过程。 例题只 阅读全文
摘要:
public void SaveResult(string Content) { WriteCsv("E:/"+sampleName + ".csv", Content); //保存路径 } public void WriteCsv(string FilePath, string WriteCont 阅读全文
摘要:
1 using System; 2 using System.Collections.Generic; 3 using System.IO; 4 using System.Runtime.InteropServices; 5 using System.Text; 6 7 namespace Cons 阅读全文
摘要:
加入ListView,在Columns中添加列。view属性改成Details。 1 private void show_log(string str) 2 { 3 this.BeginInvoke(new MethodInvoker(() => 4 { 5 ListViewItem viewIte 阅读全文
摘要:
client类 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 using System.N 阅读全文
摘要:
c#中读取文件,可以用来保存日志,写最近退出时的控件参数,读文件可以在打开窗口时加载上次退出时的参数信息。 1 using System; 2 using System.Collections.Generic; 3 using System.IO; 4 using System.Linq; 5 us 阅读全文