Saturday, 23 September 2023

TE files

 Files that end with *.te are SELinux policy source files, which define domains and their labels. You may need to create new policy files in /device/manufacturer/device-name/sepolicy, but you should try to update existing files where possible.


require Statement at the start of the list.

If SELinux policy rule does not exist to allow access, such as for a process opening a file, access is denied

We use “optional_policy” statement to declare a rule which could be invalid if an appropriate module (module containing a declaration of an interface) is disabled/removed or is not declared. Probably the following example is better than my definition.

optional_policy(`
corosync_exec(fenced_t)
‘)


Sunday, 2 July 2023

ML Basics

  • Calculus: Limits, continuity and differentiability. Maxima and minima. Mean value theorem. Integration.
  • Linear Algebra: Matrices, determinants, system of linear equations, eigenvalues and eigenvectors, LU decomposition
  • Probability: Random variables. Uniform, normal, exponential, Poisson and binomial distributions. Mean, median, mode and standard deviation. Conditional probability and Bayes theorem.
CSP(Constraint satisfaction Problem): Finding a solution that meets constraints

 https://iisc.talentsprint.com/cds/main.html#curriculum

fit function trains the model, taking features (aka columns) and part of the data which is intended to be trained.

https://www.sharpsightlabs.com/blog/sklearn-fit/

“house price” is the column we’ve to predict so we take that column as y and the rest of the columns as our X variable. test_size = 0.05 specifies only 5% of the whole data is taken as our test set, and 95% as our train set. 


https://www.geeksforgeeks.org/how-to-split-a-dataset-into-train-and-test-sets-using-python/