Questions tagged [robustness]

Robustness is the ability of a system to continue to run after it detects an error (Steve McConnell, "Code Complete").

Robustness is the ability of a system to continue to run after it detects an error.
/Steve McConnell, "Code Complete"/

As per wikipedia:

In computer science, robustness is the ability of a computer system to cope with errors during execution or the ability of an algorithm to continue to operate despite abnormalities in input, calculations, etc.

The opposite of robust code is fragile code; an example of fragile code would be having a class with all its member variables marked as public.


The benefits of having robust code are many, some of the most important ones are:
1. Easy to change. Robust code is easier to change because external factors don’t affect its behaviour.
2. Less bugs. The more robust the code is, the less combinations that cause a bug in the code.
3. Better integration. Robust code is predictable, so from an integrator point view, is always going to have the same behavior. 4. Consistency. Robust code works fine no matter who, when or how it gets called.
/Robustness, the forgotten code quality/

Several links by theme:
Examples for Robustness Requirements
10 characteristics of a robust application or service

134 questions
0
votes
0 answers

Robust Machine learning of Mnist data set using Hinge loss

Am training Mnist.csv for robustness adding Gaussian noise using python random library,but how will I decide on the mean and std of noise to be added to the dataset.Am using a standardized data with 785 (28281) column and training for fog,brightness…
0
votes
2 answers

robust continuous TCP connection (python socket)

My goal is to establish a continuous and robust TCP connection between one server and exactly one client. If one side fails, the other one should wait until it recovers. I wrote the following code based on this question (that only asks for…
black
  • 1,151
  • 3
  • 18
  • 46
0
votes
1 answer

Address unequal variance between groups before applying contrasts for a linear model? (r)

My Goal: I have an ordinal factor variable (5 levels) to which I would like to apply contrasts to test for a linear trend. However, the factor groups have heterogeneity of variance. What I've done: Upon recommendation, I used lmRob() from robust…
Cassandra
  • 137
  • 1
  • 9
0
votes
1 answer

How to block bootstrap in R?

I'm trying to run a block bootstrapping function on some time series data (monthly interest rates for ~15 years). My data is in a csv file with no header, all comprising one column and going down by row. I installed the package bootstrap because…
Ryan
  • 11
  • 5
0
votes
0 answers

How can I delete all rows above a specific row?

I am working on some code that imports data from an external source; the issue however is that the header row sometimes contains blank rows above it. Since these rows are unnecessary, I would like to delete all rows above the header row. Currently,…
radeg
  • 61
  • 6
0
votes
0 answers

How to use the function glmrob on a binary logistic regression?

I am currently running a regression that explains the probability of only one company bidding in a tender by several corruption indicators. My current regression is: glm(Single_Bid ~ Announcement_NoCall + Country_NL + Extr_Adv + Extr_Dec +…
0
votes
2 answers

Configure settings of .NET Framework 4.5's System.IO.FileSystemWatcher to be Communicative about Errors, Fault-tolerant, Robust, intelligent, etc

At my office, we are using ( https://learn.microsoft.com/en-us/dotnet/api/system.io.filesystemwatcher?view=netframework-4.5 ) .NET Framework 4.5's System.IO.FileSystemWatcher We have a application modules running in a distributed network…
0
votes
1 answer

Options for robust ANCOVA with more than 2 groups/levels?

I am trying to conduct a robust ANCOVA with 1 grouping variable/factor with 4 levels and one continuous covariate. Is anyone aware of functions that can execute this? ancova() from WRS2 only takes 2 levels, and when I try to install the older WRS…
Cassandra
  • 137
  • 1
  • 9
0
votes
2 answers

How can I create Summary Tables with a modified regression?

I want to export the summary() function of several regressions into a summary table. Normally I use stargaze. The problem is: I calculated Heteroskedasticity Robust Standard errors which are shown by using a special summary function (e.g.…
Thomas
  • 1
  • 1
0
votes
2 answers

Multiprocessing Robust to Occasional Failures

I have a 100-1000 timeseries paths and a fairly expensive simulation that I'd like to parallelize. However, the library I'm using hangs on rare occasions and I'd like to make it robust to those issues. This is the current setup: with Pool() as…
rhaskett
  • 1,864
  • 3
  • 29
  • 48
0
votes
1 answer

Reproducible splitting of data into training and testing in R

A common way for sampling/splitting data in R is using sample, e.g., on row numbers. For example: require(data.table) set.seed(1) population <- as.character(1e5:(1e6-1)) # some made up ID names N <- 1e4 # sample size sample1 <- data.table(id =…
0
votes
1 answer

How to catch and recover from StackOverflowException when hosting CLR

I understand that starting from .net2.0 StackOverflowException is no longer catch-able. But people mentioned the exception to the rule when CLR is hosted, in which case it's possible to handle and recover from such exception. This makes sense…
Weipeng
  • 1,494
  • 14
  • 11
0
votes
1 answer

1 Service end-point vs 3 individual end-points for Create/Update/Delete in CRUD | Architecture

I am having this question about having CRUD services built, I should be able to create, update, delete and get the records from the DB. For easy understanding. I will use an example of a Company to which I should be writing services to perform the…
0
votes
1 answer

How to measure robustness and stress?

I'm working on an investigation on robustness and stress metrics, but I can't really find useful information. I did see that MTBF is an option for robustness on this question: How to measure robustness?. But I was wondering if there are any other…
Luis
  • 44
  • 1
  • 5
  • 17
0
votes
2 answers

Catching unhandled exceptions in web control to allow page to render

(I am actually using Ektron CMS, and am using Widgets, which are a very simple extension of a user control). Problem: I have a web page that contains many widgets. If an exception occurs in one of these widgets, the page stops and the user is given…
Spongeboy
  • 2,232
  • 3
  • 28
  • 37
1 2 3
8 9