Tao's blog

Learn something everyday.

Tensorflow Tutorial 2, Using Simple Forward NN to do regssion

import tensorflow as tf import numpy as np import matplotlib.pyplot as plt # 这个 note book 演示了使用一个全联接前驱神经网络处理 # 来学习一个regression 的问题 x_data = np.linspace(-np.pi, np.pi, 100)[:, np.newaxis] noise...

Tensorflow Tutorial 1, Linear regssion

import tensorflow as tf import numpy as np import matplotlib.pyplot as plt # linera regression model #定义变量 x_data = np.random.rand(100) y_data = x_data * 0.1 + 0.2 b = tf.Variable(0.) k = tf.Va...

Wired things when using jupyter to write tensorflow summary

When using jupyter notebook, and try to using tf.summary.scalar('loss', loss) merged = tf.summary.merge_all() with tf.Session() as sess: train_writer = tf.summary.FileWriter('./train', sess.g...

Using jupyter notebook as interactive python shell

install pip install jupyter usage jupyter notebook this will will invoke a browser tab, you can use the browser to behave like an interactive python shell shortcut shift-tab-tab ,show the...

Hackintosh on Dell 3543 - 6. Update to 10.12.6

Major issue and fix: Wifi找不到硬件, 按照之前的教程重新安装即可。 Audio 找不到硬件, 按照之前的教程重新安装VoodooHDA。 背光调节。之前使用了 IntelBacklight.kext 在10.12.4之后无法使用。 参照教程[Guide: Laptop backlight control u...

My understanding on C++ traits

Talk is cheap, please see the code. #include <iostream> #include <string> template <typename T> class ClockTraits { public: typedef std::string nameType; typedef float ...

Rescue exFat format partition lost

After tried a lot of methods, the simplest and most powerful way for me is just the windows native command. chkdsk :x /f Here “x” is the label for your partition, for example, “c” or “d” o...

Fix ubuntu touch pad too sensitive

Actions Taken: Backup the original: /usr/share/X11/xorg.conf.d/50-synaptics.conf sudo vi /usr/share/X11/xorg.conf.d/50-synaptics.conf Add the sections to: Section "InputClass" Identifier ...

Using shadowsocks and kcptun

Here is step of using shodowsocks and kcptun to cross the GFW. shadowsocks itself is sufficient, but with the help of kcptun, the speed when watching video really boosted. I. Server side 1. Get ...

Hackintosh on Dell 3543 - 6. Using Bluetooth after disable Discrete GPU

Bluetooth问题 在本系列的第4篇中,按照教程禁用了英伟达独立显卡之后,偶然发现蓝牙居然可用。于是果断的配上了小米蓝牙小钢炮音箱。 可以通过蓝牙来进行外放了。 手机蓝牙和电脑配对之后,如果要通过手机向电脑传输文件的话,应该打开电脑中的: 系统设置-》共享-》蓝牙共享。 存在的问题及解决方案: 问题1:长时间睡眠之后,无法再次连接蓝牙。...