Problem: time series classification shapelet-based method: two issues 1. for multi-class imbalanced classification tasks, these methods will ignore th ...
分类:
Web程序 时间:
2020-02-06 01:44:11
阅读次数:
127
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2020/02/04 20:08 # @Author : dangxusheng # @Email : dangxusheng163@163.com # @File : isLand_lo ...
分类:
其他好文 时间:
2020-02-05 23:09:40
阅读次数:
244
题意 做法 考虑一个子电路图$G$,设得到有效电阻为$x$,费用为$f_G(x)$,通过归纳易得$f_G(x)$是关于$x$的一个一次函数,即$f_G(x)=k_Gx$ 考虑电路图$G$的若干个子电路图$G_1,G_2,...,G_n$ 串联:设子电路图的系数分别为$k_{G_1}\le k_{G_ ...
分类:
其他好文 时间:
2020-02-05 13:53:23
阅读次数:
58
该文主要采用“知识蒸馏”方法对BERT(预训练语言模型)精简、优化,将较大模型压缩成较小的模型,最终目的是:提高模型推理的效率,让运行在智能手机等硬件设备上的深度学习模型具有轻量级、响应快及能源利用率高等特性。 在2019年的NLP领域预训练+微调的模型训练思路百家争鸣,ElMo、GPT、BERT、 ...
分类:
其他好文 时间:
2020-02-03 20:58:10
阅读次数:
155
机器学习的模型由哪三个部分组成,机器学习的 cost function 与 loss function 的关系。 ...
分类:
其他好文 时间:
2020-02-03 09:41:51
阅读次数:
153
原博客:https://blog.csdn.net/huplion/article/details/79069365 (在此仅作学习记录作用) 一、前言 在前几篇文章中,我们学习到如何在训练集上设置权重,并由此计算出损失(loss),其中loss是有两部分组成,分别是数据损失项和正则化项目。我们最终 ...
分类:
编程语言 时间:
2020-02-02 13:57:38
阅读次数:
57
import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' import tensorflow as tf #tensorboard --logdir="./" def linearregression(): with tf.variable_scope(" ...
分类:
其他好文 时间:
2020-01-31 20:44:31
阅读次数:
83
在tf.keras中,metrics其实就是起到了一个测量表的作用,即测量损失或者模型精度的变化。metrics的使用分为以下四步: step1:Build a meter acc_meter = metrics.Accuracy() loss_meter = metrics.Mean() step ...
1.MSE(均方误差) MSE是指真实值与预测值(估计值)差平方的期望,计算公式如下: MSE = 1/m (Σ(ym-y'm)2),所得结果越大,表明预测效果越差,即y和y'相差越大 y = tf.constant([1,2,3,0,2]) y = tf.one_hot(y,depth=4) y ...
分类:
其他好文 时间:
2020-01-27 15:40:00
阅读次数:
100
当前代码绘制的图片会出现下图中文字重叠的情况: plt.subplot(211) plt.plot(epochs,loss,'bo',label='Training loss') plt.plot(epochs,val_loss,'b',label='Validation loss') plt.ti ...
分类:
编程语言 时间:
2020-01-27 15:25:06
阅读次数:
881