This file contains hidden or 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
% Playing with the Stacked Denoising Auto-Encoder in the DeepLearnToolbox | |
% (https://github.com/rasmusbergpalm/DeepLearnToolbox), | |
% and trying to use it to extract features. | |
%% Loads data | |
load mnist_uint8; | |
% I don't have much memory | |
clear test_x test_y |
This file contains hidden or 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
(* ::Package:: *) | |
heron[side1_,side2_,base_]:=Module[{p,s},( | |
p=(side1+side2+base)/2; | |
s=Sqrt[p (p-side1)(p-side2)(p-base)])] | |
getHeight[side1_,side2_,base_]:=Module[{cos,sin,h},( | |
cos=(side1*side1+base*base-side2*side2)/(2*side1*base); | |
sin=Sqrt[1-cos*cos]; |
NewerOlder