Skip to content

Commit 256c792

Browse files
committed
Deleting duplicate jmathplot lib. Updating t-SNE test
1 parent b6ce423 commit 256c792

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

lib/jmathplot/jmathplot.jar

-218 KB
Binary file not shown.

src/edu/psu/compbio/seqcode/projects/shaun/TSNE_testing.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ public class TSNE_testing {
2929
private double[][] data=null;
3030
private int numCols=0;
3131
private int numRows=0;
32-
private List<String> colNames;
33-
private List<String> labels;
34-
private List<String> coords;
32+
private List<String> colNames=new ArrayList<String>();
33+
private List<String> labels=new ArrayList<String>();
34+
private List<String> coords=new ArrayList<String>();
3535
private double perplexity=20;
3636
private int initialDims=10;
3737
private int iters=1000;
@@ -93,7 +93,6 @@ private void saveFile(File file, String text, boolean append) {
9393
* @param infile
9494
*/
9595
private void loadDataFile(String infile){
96-
double [][] data;
9796
List<String> dataLines = new ArrayList<String>();
9897
String header;
9998

@@ -102,7 +101,7 @@ private void loadDataFile(String infile){
102101
File pFile = new File(infile);
103102
if(!pFile.isFile()){System.err.println("Invalid file name "+infile);System.exit(1);}
104103
BufferedReader reader = new BufferedReader(new FileReader(pFile));
105-
header = reader.readLine();
104+
header = reader.readLine();
106105
String line;
107106
while ((line = reader.readLine()) != null) {
108107
dataLines.add(line.trim());

0 commit comments

Comments
 (0)