@Test public void testGetTrainingData() { given(dataSource.getTrainingData()).willReturn(dataSet); FederatedDataSet trainingData = cut.getTrainingData(); assertNotNull(trainingData); }
@Override public FederatedDataSet getTrainingData() { return dataSource.getTrainingData(); }
FederatedRepositoryImpl implements FederatedRepository { @Override public FederatedDataSet getTrainingData() { return dataSource.getTrainingData(); } }
FederatedRepositoryImpl implements FederatedRepository { @Override public FederatedDataSet getTrainingData() { return dataSource.getTrainingData(); } FederatedRepositoryImpl(FederatedDataSource dataSource, FederatedNetworkDataSource networkDataSource); }
FederatedRepositoryImpl implements FederatedRepository { @Override public FederatedDataSet getTrainingData() { return dataSource.getTrainingData(); } FederatedRepositoryImpl(FederatedDataSource dataSource, FederatedNetworkDataSource networkDataSource); @Override FederatedDataSet getTrainingData(); @Override FederatedDataSet getTestData(); @Override FederatedDataSet getCrossValidationData(); @Override Observable<Boolean> uploadGradient(byte[] gradient); @Override Observable<byte[]> retrieveGradient(); @Override Observable<Integer> registerModel(); }
FederatedRepositoryImpl implements FederatedRepository { @Override public FederatedDataSet getTrainingData() { return dataSource.getTrainingData(); } FederatedRepositoryImpl(FederatedDataSource dataSource, FederatedNetworkDataSource networkDataSource); @Override FederatedDataSet getTrainingData(); @Override FederatedDataSet getTestData(); @Override FederatedDataSet getCrossValidationData(); @Override Observable<Boolean> uploadGradient(byte[] gradient); @Override Observable<byte[]> retrieveGradient(); @Override Observable<Integer> registerModel();  }