This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tensorflow as tf | |
import numpy as np | |
import matplotlib.pyplot as plt | |
learning_rate = 0.01 | |
training_epochs = 40 | |
trX = np.linspace(-1, 1, 101) | |
num_coeffs = 6 | |
trY_coeffs = [1, 2, 3, 4, 5, 6] | |
trY = 0 | |
for i in range(num_coeffs): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Contact</title> | |
<meta name="viewport" content="width=device-width, initialscale=1"> | |
<link rel="stylesheet" href="jquery.mobile-1.4.5.css" /> | |
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js"></script> | |
<script type="text/javascript" src="jquery.mobile-1.4.5.min.js"></script> | |
</head> | |
<body> | |
<div data-role="page" id="contactPage"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>About</title> | |
<meta name="viewport" content="width=device-width, initialscale=1"> | |
<link rel="stylesheet" href="jquery.mobile-1.4.5.css" /> | |
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js"></script> | |
<script type="text/javascript" src="jquery.mobile-1.4.5.min.js"></script> | |
</head> | |
<body> | |
<div data-role="page" id="aboutPage"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Home</title> | |
<meta name="viewport" content="width=device-width, initialscale=1"> | |
<link rel="stylesheet" href="jquery.mobile-1.4.5.css" /> | |
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js"></script> | |
<script type="text/javascript" src="jquery.mobile-1.4.5.min.js"></script> | |
</head> | |
<body> | |
<div data-role="page" id="homePage"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tensorflow as tf | |
import numpy as np | |
import matplotlib.pyplot as plt | |
x_train = np.linspace(0, 10, 100) | |
y_train = x_train + np.random.normal(0,1,100) | |
learning_rate = 0.01 | |
training_epoches = 100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib.pyplot as plt | |
import numpy as np | |
import tensorflow as tf | |
sess = tf.Session() | |
# the training set | |
x_train = np.linspace(0, 10, 100) | |
y_train = x_train + np.random.normal(0,1,100) | |
# Creating X |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>First Mobile Example</title> | |
<meta name="viewport" content="width=device-width, initialscale=1"> | |
<link rel="stylesheet" href="jquery.mobile-1.4.5.css" /> | |
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js"></script> | |
<script type="text/javascript" src="jquery.mobile-1.4.5.min.js"></script> | |
</head> | |
<body> | |
<div data-role="page" id="homePage"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def binary(number): | |
base = 1 | |
binary_val = 0 | |
while(number > 0): | |
rem = number%2 | |
binary_val = binary_val + rem*base | |
number = number/2 | |
base = base*10 | |
return binary_val | |
number = long(raw_input("Nhap so he thap phan:")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun main(args: Array<String>) { | |
var OK = 'Y' | |
do { | |
print("Nhap a = ") | |
var a = readLine()!!.toInt() | |
print("Nhap b = ") | |
var b = readLine()!!.toInt() | |
if(a==0) | |
print("Phuong trinh ${a}x + $b = 0 vo nghiem") | |
else { |
NewerOlder