You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Zero/TestHNSW/HNSWDemo/Program.cs

36 lines
892 B

using HNSWDemo.Tests;
using System;
using System.IO;
using ZeroLevel.HNSW;
3 years ago
namespace HNSWDemo
{
class Program
{
static void Main(string[] args)
{
new QuantizatorTest().Run();
// new AutoClusteringMNISTTest().Run();
// new AccuracityTest().Run();
Console.WriteLine("Completed");
Console.ReadKey();
}
static int GetC(string file)
{
var name = Path.GetFileNameWithoutExtension(file);
var index = name.IndexOf("_M");
if (index > 0)
{
index = name.IndexOf("_", index + 2);
if (index > 0)
{
var num = name.Substring(index + 1, name.Length - index - 1);
return int.Parse(num);
}
}
return -1;
}
3 years ago
}
}

Powered by TurnKey Linux.