ywcb00 commented on code in PR #2539: URL: https://github.com/apache/systemds/pull/2539#discussion_r3656742823
########## src/test/java/org/apache/sysds/test/component/cp/DPBuiltinCPInstructionTest.java: ########## @@ -0,0 +1,409 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package org.apache.sysds.test.component.cp; + +import org.apache.sysds.parser.DMLProgram; +import org.apache.sysds.runtime.DMLRuntimeException; +import org.apache.sysds.runtime.controlprogram.Program; +import org.apache.sysds.runtime.controlprogram.context.ExecutionContext; +import org.apache.sysds.runtime.controlprogram.context.ExecutionContextFactory; +import org.apache.sysds.runtime.privacy.dp.DPBudgetAccountant; + +import org.junit.Test; +import org.junit.Assert; + +/** + * Tests for {@code DPBuiltinCPInstruction} and {@code DPBudgetAccountant}. + * + * The tests are grouped into three levels: - Unit tests on DPBudgetAccountant — verify composition, conversion, and + * budget enforcement in isolation, with no dependency on the full SystemDS runtime. - Noise distribution tests — verify + * that the noise blocks generated by the Laplace and Gaussian mechanisms have statistically correct means and variances + * (Kolmogorov-Smirnov style sanity checks). - DML integration tests</b> — run complete DML scripts and verify Review Comment: Remove html notation here (i.e., the break line) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
