From 4d78ed898ad9c9e393037a5a05ef19ed53ac3cae Mon Sep 17 00:00:00 2001 From: Mustafa Bal <5262061+mstfbl@users.noreply.github.com> Date: Fri, 6 Nov 2020 18:36:18 -0800 Subject: [PATCH] Added Linux & Mac changes for Arcade (#5479) * Initial Windows, Linux, Macos builds test * Add Linux/MacOS specific CI requirements * Run Arcade CI tests on MacOS/Linux * Fix final package building * Add benchmark download to benchmars .csporj file * Print detailed status of each unit test * Install CentOS & Ubuntu build dependencies * Use container names to differenciate between Ubuntu & CentOS * Remove sudo usage in CentOS * Fix Linux build dependencies * Add -y param to apt install * Remove installation of Linux dependencies * Minor additions * Rename Benchmarks to PerformanceTests for Arcade * Changes * Added benchmark doc changes * Pre-merge changes --- .../ShuffleRowsBench.cs | 53 ------------------- 1 file changed, 53 deletions(-) delete mode 100644 test/Microsoft.ML.Benchmarks/ShuffleRowsBench.cs diff --git a/test/Microsoft.ML.Benchmarks/ShuffleRowsBench.cs b/test/Microsoft.ML.Benchmarks/ShuffleRowsBench.cs deleted file mode 100644 index 95ff4be7e3..0000000000 --- a/test/Microsoft.ML.Benchmarks/ShuffleRowsBench.cs +++ /dev/null @@ -1,53 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. - -using BenchmarkDotNet.Attributes; -using Microsoft.ML.Benchmarks.Harness; -using Microsoft.ML.Data; - -namespace Microsoft.ML.Benchmarks -{ - [CIBenchmark] - public class ShuffleRowsBench : BenchmarkBase - { - private TrainRow[] _rows; - private MLContext _context; - - [GlobalSetup] - public void Setup() - { - _rows = new TrainRow[10_000]; - for (var i = 0; i < _rows.Length; i++) - { - _rows[i] = new TrainRow() { Sample = i.ToString(), Week = i, Label = i / 2 }; - } - - _context = new MLContext(); - } - - [Benchmark] - public void ShuffleRows() - { - IDataView data = _context.Data.LoadFromEnumerable(_rows); - - IDataView shuffledData = _context.Data.ShuffleRows(data, seed: 0); - - foreach (string sample in shuffledData.GetColumn("Sample")) - { - } - } - - private class TrainRow - { - [ColumnName("Sample")] - public string Sample; - - [ColumnName("Week")] - public float Week; - - [ColumnName("Label")] - public float Label; - } - } -}