Skip to content

Commit bda88d1

Browse files
committed
Initial version of nuget package and project configuration
1 parent f46a855 commit bda88d1

File tree

14 files changed

+197
-4
lines changed

14 files changed

+197
-4
lines changed

AiDotNet.sln

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio Version 17
44
VisualStudioVersion = 17.8.34004.107
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AiDotNet", "AiDotNet.csproj", "{588E787B-4FCA-4590-9EE7-16750B9E6D3E}"
6+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AiDotNet", "src\AiDotNet.csproj", "{588E787B-4FCA-4590-9EE7-16750B9E6D3E}"
77
EndProject
8-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AiDotNetTestConsole", "..\AiDotNetTestConsole\AiDotNetTestConsole.csproj", "{10A6CCBA-C92B-41CD-87D1-3030FA4CF483}"
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AiDotNetTestConsole", "testconsole\AiDotNetTestConsole.csproj", "{10A6CCBA-C92B-41CD-87D1-3030FA4CF483}"
99
EndProject
10-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AiDotNetUnitTests", "..\AiDotNetUnitTests\AiDotNetUnitTests.csproj", "{9D9859B0-528F-416A-A908-B96CA11074EC}"
10+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AiDotNetUnitTests", "tests\AiDotNetUnitTests.csproj", "{9D9859B0-528F-416A-A908-B96CA11074EC}"
1111
EndProject
1212
Global
1313
GlobalSection(SolutionConfigurationPlatforms) = preSolution

README.md

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,37 @@
1-
# AiDotNet
1+
## Ai.Net
2+
3+
This is a library (currently in preview) for getting the latest and greatest ai algorithms and bringing them directly to the .net community.
4+
Our approach for this library was to both provide an easy way for beginners to be able to use AI/ML since it usually has a very steep learning curve,
5+
and an easy way for expert level users to be able to fully customize everything about our algorithms. For now we are showcasing our simplified approach
6+
by providing simple linear regression to get feedback on how we can improve our library.
7+
We will be adding more algorithms in the future and we are open to any contributions to this library. Please let us know what you think about our approach.
8+
We will be handling all ai algorithms using the same methods.
9+
10+
11+
### How to use this library
12+
13+
Here is an example to show how easy it is to use this library to get a trained model, get metrics for the trained model, and generate new predictions:
14+
15+
```cs
16+
using AiDotNet;
17+
18+
var inputs = new double[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
19+
var outputs = new double[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
20+
21+
var simpleRegression = new SimpleRegression(inputs, outputs);
22+
var metrics = simpleRegression.Metrics;
23+
var predictions = simpleRegression.Predictions;
24+
```
25+
26+
Here is an example for more advanced users to customize everything used in the algorithm:
27+
28+
```cs
29+
using AiDotNet;
30+
31+
var inputs = new double[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
32+
var outputs = new double[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
33+
34+
var advancedSimpleRegression = new SimpleRegression(inputs, outputs, trainingPctSize: 20);
35+
var metrics = advancedSimpleRegression.Metrics;
36+
var predictions = advancedSimpleRegression.Predictions;
37+
```

src/AiDotNet.csproj

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework>net8.0</TargetFramework>
5+
<ImplicitUsings>enable</ImplicitUsings>
6+
<Nullable>enable</Nullable>
7+
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
8+
<Version>0.0.1-preview</Version>
9+
<Title>Ai for .Net</Title>
10+
<Description>This is a preview library that will eventually showcase the latest and greatest in ai breakthroughs and bring them to the .net community</Description>
11+
<Company>Ooples Finance</Company>
12+
<Authors>ooples</Authors>
13+
<Copyright>Ooples Finance LLC 2023</Copyright>
14+
<PackageProjectUrl>https://github.com/ooples/AiDotNet</PackageProjectUrl>
15+
<RepositoryType>git</RepositoryType>
16+
<RepositoryUrl>https://github.com/ooples/AiDotNet</RepositoryUrl>
17+
<PackageTags>ai; regression; machine learning; artificial; intelligence; machine; chatgpt; learning; algorithm; algo; chatgpt-4</PackageTags>
18+
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
19+
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>
20+
<PackageIcon>Favicon.jpg</PackageIcon>
21+
<PackageReadmeFile>README.md</PackageReadmeFile>
22+
</PropertyGroup>
23+
24+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
25+
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
26+
</PropertyGroup>
27+
28+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
29+
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
30+
</PropertyGroup>
31+
32+
<ItemGroup>
33+
<None Include="Images\Favicon.jpg">
34+
<Pack>True</Pack>
35+
<PackagePath>\</PackagePath>
36+
</None>
37+
<None Include="..\README.md">
38+
<Pack>True</Pack>
39+
<PackagePath>\</PackagePath>
40+
</None>
41+
</ItemGroup>
42+
43+
</Project>

src/Images/Favicon.jpg

44.1 KB
Loading
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4+
<OutputType>Exe</OutputType>
45
<TargetFramework>net8.0</TargetFramework>
56
<ImplicitUsings>enable</ImplicitUsings>
67
<Nullable>enable</Nullable>
78
</PropertyGroup>
89

10+
<ItemGroup>
11+
<ProjectReference Include="..\src\AiDotNet.csproj" />
12+
</ItemGroup>
13+
914
</Project>

0 commit comments

Comments
 (0)