Month: September 2024
How to enable the preview mode in Microsoft Loop
Microsoft Loop’s Preview mode provides the ability to get the latest features, allowing users to explore and analyze them before deploying them to the entire organization, encouraging adoption.
Microsoft Loop’s Preview mode provides the ability to get the latest features, allowing users to explore and analyze them before deploying them to the entire organization, encouraging adoption. Read More
Omdia’s perspective on Microsoft’s SSE solution
In July, we announced the general availability of the Microsoft Entra Suite and Microsoft’s Security Service Edge (SSE) solution which includes Microsoft Entra Internet Access and Microsoft Entra Private Access.
Microsoft’s vision for SSE
Microsoft’s SSE solution aims to revolutionize the way organizations secure access to any cloud or on-premises applications. It unifies identity and network access through Conditional Access, the Zero Trust policy engine, helping to eliminate security loopholes and bolster your organization’s security stance against threats. Delivered from one of the largest global private networks, the solution ensures a fast and consistent hybrid work experience. With flexible deployment options across other SSE and networking solutions, you can choose to route specific traffic profiles through Microsoft’s SSE solution.
Omdia’s perspective
According to Omdia, a leading research and consulting firm, Microsoft’s entry into the SASE/SSE space is poised to disrupt the market. Omdia highlights that Microsoft’s focus is on an identity-centric SASE framework, which helps consolidate technologies from different vendors by extending identity controls to your network and enhancing team collaboration. A key strength for Microsoft, according to Omdia, is its ability to introduce Microsoft Entra Internet Access and Microsoft Entra Private Access seamlessly into existing identity management conversations—a strength that could lead to broader adoption of network access services as part of the same platform.
Conclusion
As you navigate the complexities of securing network access, Microsoft’s Security Service Edge solution helps you transform your security posture and improve user experience. It simplifies collaboration between identity and network security teams by consolidating access policies across identities, endpoints and network, all managed in a single portal – the Microsoft Entra admin center. Microsoft’s SSE solution provides a new pathway to implement zero trust access controls more effectively, enabling your organization to enhance its security posture while leveraging existing Microsoft investments.
To learn more about Omdia’s perspective on Microsoft’s SSE solution, read Omdia’s report, Microsoft announces general availability of its SASE/SSE offering.
Learn more and get started
Stay tuned for more Security Service Edge blogs. For a deeper dive into Microsoft Entra Internet access and Microsoft Entra Private Access, watch our recent Tech Accelerator product deep dives.
To get started, contact a Microsoft sales representative, begin a trial, and explore Microsoft Entra Internet Access and Microsoft Entra Private Access general availability. Share your feedback to help us make this solution even better.
Nupur Goyal, Director, Identity and Network Access Product Marketing
Read more on this topic
Simplify your Zero Trust strategy with the Microsoft Entra Suite and unified security operations platform, now generally available
Microsoft’s Security Service Edge products now in General Availability
Microsoft Entra Internet Access
Microsoft Entra Private Access
Learn more about Microsoft Entra
Prevent identity attacks, ensure least privilege access, unify access controls, and improve the experience for users with comprehensive identity and network access solutions across on-premises and clouds.
Microsoft Entra News and Insights | Microsoft Security Blog
Microsoft Entra blog | Tech Community
Microsoft Entra documentation | Microsoft Learn
Microsoft Entra discussions | Microsoft Community
Microsoft Tech Community – Latest Blogs –Read More
Change signal labels of bus selector using code
Hey,
I have a very large model and initially I have given random names to signal labels. Now I have somewhat achieved what I wanted wth my model, and I wish to make some minor modifications such as changing the signal labels. I do not wish to do it manually.
I was trying to change the signal labels for signals coming out of bus selector. I am using the
find_system and set functions to do this task but not able to do so. Issue is that bus selector does not find the new signal name.
I am able to change the name manually without any issue.
How to change the signal labelsof bus selector using code?Hey,
I have a very large model and initially I have given random names to signal labels. Now I have somewhat achieved what I wanted wth my model, and I wish to make some minor modifications such as changing the signal labels. I do not wish to do it manually.
I was trying to change the signal labels for signals coming out of bus selector. I am using the
find_system and set functions to do this task but not able to do so. Issue is that bus selector does not find the new signal name.
I am able to change the name manually without any issue.
How to change the signal labelsof bus selector using code? Hey,
I have a very large model and initially I have given random names to signal labels. Now I have somewhat achieved what I wanted wth my model, and I wish to make some minor modifications such as changing the signal labels. I do not wish to do it manually.
I was trying to change the signal labels for signals coming out of bus selector. I am using the
find_system and set functions to do this task but not able to do so. Issue is that bus selector does not find the new signal name.
I am able to change the name manually without any issue.
How to change the signal labelsof bus selector using code? bus selector MATLAB Answers — New Questions
System Linear Algebra Equation
Use a software program or a graphing utility to solve the system of linear equations. 0.2x − 3.4x + 0.5x − 0.6x + 2.3y + 1.3y − 4.9y + 2.8y − 1.4z − 1.7z + 1.1z − 3.4z + 0.55w = 0.45w = 1.6w = 0.3w = −110.6 65.4 −166.2 189.6Use a software program or a graphing utility to solve the system of linear equations. 0.2x − 3.4x + 0.5x − 0.6x + 2.3y + 1.3y − 4.9y + 2.8y − 1.4z − 1.7z + 1.1z − 3.4z + 0.55w = 0.45w = 1.6w = 0.3w = −110.6 65.4 −166.2 189.6 Use a software program or a graphing utility to solve the system of linear equations. 0.2x − 3.4x + 0.5x − 0.6x + 2.3y + 1.3y − 4.9y + 2.8y − 1.4z − 1.7z + 1.1z − 3.4z + 0.55w = 0.45w = 1.6w = 0.3w = −110.6 65.4 −166.2 189.6 linear equation, graph MATLAB Answers — New Questions
What would cause Matlab to lose track of gcf()?
I’m trying to reproduce a bug/reduce it to something I can report, but so far it only happens when I call a particular 150-line function. I can put the offending code, up to and including the line that causes the error, in a new function and it runs fine, so I imagine there’s something going on behind the scenes with the other 140 lines. T̶h̶i̶s̶ ̶c̶o̶d̶e̶ ̶r̶u̶n̶s̶ ̶f̶i̶n̶e̶ ̶o̶n̶ ̶W̶i̶n̶d̶o̶w̶s̶.̶
If I pause inside the function and type
which gcf
I get: built-in (/Applications/MATLAB_R2024a.app/toolbox/matlab/graphics/gcf)
Which is correct. But when I call gcf immediately after, I get:
Unrecognized function or variable ‘gcf’.
Sorry I don’t have an example to upload. I’m just looking for troubleshooting ideas.I’m trying to reproduce a bug/reduce it to something I can report, but so far it only happens when I call a particular 150-line function. I can put the offending code, up to and including the line that causes the error, in a new function and it runs fine, so I imagine there’s something going on behind the scenes with the other 140 lines. T̶h̶i̶s̶ ̶c̶o̶d̶e̶ ̶r̶u̶n̶s̶ ̶f̶i̶n̶e̶ ̶o̶n̶ ̶W̶i̶n̶d̶o̶w̶s̶.̶
If I pause inside the function and type
which gcf
I get: built-in (/Applications/MATLAB_R2024a.app/toolbox/matlab/graphics/gcf)
Which is correct. But when I call gcf immediately after, I get:
Unrecognized function or variable ‘gcf’.
Sorry I don’t have an example to upload. I’m just looking for troubleshooting ideas. I’m trying to reproduce a bug/reduce it to something I can report, but so far it only happens when I call a particular 150-line function. I can put the offending code, up to and including the line that causes the error, in a new function and it runs fine, so I imagine there’s something going on behind the scenes with the other 140 lines. T̶h̶i̶s̶ ̶c̶o̶d̶e̶ ̶r̶u̶n̶s̶ ̶f̶i̶n̶e̶ ̶o̶n̶ ̶W̶i̶n̶d̶o̶w̶s̶.̶
If I pause inside the function and type
which gcf
I get: built-in (/Applications/MATLAB_R2024a.app/toolbox/matlab/graphics/gcf)
Which is correct. But when I call gcf immediately after, I get:
Unrecognized function or variable ‘gcf’.
Sorry I don’t have an example to upload. I’m just looking for troubleshooting ideas. figure MATLAB Answers — New Questions
Patenting a Matlab script
Hi, does anyone have experience about patenting a Matlab script ?
My code is not a function itself ( like ceil, stifness or magic() tu make some examples ) but i use some of the Matlab function to make something.
I appreciate if you write your knowledge about.
Thank youHi, does anyone have experience about patenting a Matlab script ?
My code is not a function itself ( like ceil, stifness or magic() tu make some examples ) but i use some of the Matlab function to make something.
I appreciate if you write your knowledge about.
Thank you Hi, does anyone have experience about patenting a Matlab script ?
My code is not a function itself ( like ceil, stifness or magic() tu make some examples ) but i use some of the Matlab function to make something.
I appreciate if you write your knowledge about.
Thank you patenting, script, application MATLAB Answers — New Questions
Sharepoint Photo Settings
I am using Lightroom (Win) and exported an image then uploaded it to a Sharepoint Folder. The quality is great!
Now, I am trying to export another image, but when I do, it displays distorted.
I do not remember ‘how’ or what settings I used to export the first image, but when I look at the image details of both images, the dimensions are the same, but the DPI’s are not.
The details for original image that looks good are:
Dimensions: 4160 x 2768
Resolution: 72 DPI
Bit Depth: 24
Color Representation: sRGB
I cannot figure out how to lower the DPI to 72 when exporting the 2nd image, or if that even matters?
There is no resolution setting to change, only quality.
1) Does anyone know how to do that and maintain image quality?
2) Is there an Admin Sharepoint Setting that restricts photo quality?
I am using Lightroom (Win) and exported an image then uploaded it to a Sharepoint Folder. The quality is great!Now, I am trying to export another image, but when I do, it displays distorted.I do not remember ‘how’ or what settings I used to export the first image, but when I look at the image details of both images, the dimensions are the same, but the DPI’s are not.The details for original image that looks good are:Dimensions: 4160 x 2768Resolution: 72 DPIBit Depth: 24Color Representation: sRGBI cannot figure out how to lower the DPI to 72 when exporting the 2nd image, or if that even matters?There is no resolution setting to change, only quality.1) Does anyone know how to do that and maintain image quality?2) Is there an Admin Sharepoint Setting that restricts photo quality? Read More
Excel File does not open
Excel file is giving an error message: Cannot open file because the path is more than 259 characters. Try shortening the path or file name.
Does not allow me to change file name either.
Excel file is giving an error message: Cannot open file because the path is more than 259 characters. Try shortening the path or file name. Does not allow me to change file name either. Read More
vlookup + match
Hello. I need help with a formula combining vlookup and match. Somehow, the return is not correct. My formula right now is: VLOOKUP($B9,$B$2:$B$5,MATCH($A9,$A$2:$A$5,0),FALSE)
But it’s wrong apparently. Why?
Hello. I need help with a formula combining vlookup and match. Somehow, the return is not correct. My formula right now is: VLOOKUP($B9,$B$2:$B$5,MATCH($A9,$A$2:$A$5,0),FALSE) But it’s wrong apparently. Why? Read More
Running self hosted agent in interactive mode on on-prem server
I have a scenario, Where I have some UFT Developer Automation Tests cases that carry UI automation of Facets Application. I have them running on TFS release pipelines but the test cases are failing because the agent is not able to find the Facets window as it is running as a service and we need to configure the ADO agent to run in interactive mode for UI test. Instead of manually logging in to the server and trigger the agent to run in interactive how can we automate that because i need 50 agents to run in the interactive mode
I have a scenario, Where I have some UFT Developer Automation Tests cases that carry UI automation of Facets Application. I have them running on TFS release pipelines but the test cases are failing because the agent is not able to find the Facets window as it is running as a service and we need to configure the ADO agent to run in interactive mode for UI test. Instead of manually logging in to the server and trigger the agent to run in interactive how can we automate that because i need 50 agents to run in the interactive mode Read More
How to access existing variable with Data Store Read in Simulink?
I use a third party c library with my Simulnk model as Custom Code. I’d like to access a global variable exported in this library with a Data Store Read block from the Simulink model. However I don’t know how to tell the Data Store Memory block that it is an already existing variable. It always exports the definition no matter what, and also initializes the variable with de default values. How can it be achieved? Thanks!I use a third party c library with my Simulnk model as Custom Code. I’d like to access a global variable exported in this library with a Data Store Read block from the Simulink model. However I don’t know how to tell the Data Store Memory block that it is an already existing variable. It always exports the definition no matter what, and also initializes the variable with de default values. How can it be achieved? Thanks! I use a third party c library with my Simulnk model as Custom Code. I’d like to access a global variable exported in this library with a Data Store Read block from the Simulink model. However I don’t know how to tell the Data Store Memory block that it is an already existing variable. It always exports the definition no matter what, and also initializes the variable with de default values. How can it be achieved? Thanks! simulnink, data store memory, custom code MATLAB Answers — New Questions
whether is imageInputLayer flattened?
I am reading document about imageinputlayer for digits dataset. I find inputsize layer and then can be followed by a fully connected layer. I am confused here. Whether does it mean that inputlayer is flatten automatically how do i know this information since it is not written in document? could you let me know how it works for the inputsize layer?I am reading document about imageinputlayer for digits dataset. I find inputsize layer and then can be followed by a fully connected layer. I am confused here. Whether does it mean that inputlayer is flatten automatically how do i know this information since it is not written in document? could you let me know how it works for the inputsize layer? I am reading document about imageinputlayer for digits dataset. I find inputsize layer and then can be followed by a fully connected layer. I am confused here. Whether does it mean that inputlayer is flatten automatically how do i know this information since it is not written in document? could you let me know how it works for the inputsize layer? imageinputlayer digits flatten MATLAB Answers — New Questions
How to store an array of headers in a MAT file?
I’m trying to update any given table with a new header names imported from a .MAT file. I’m not sure how to approach this. Given the number of columns that the data file has, I want it to access a specific MAT file with new header names so that I can plot the preferred data. I don’t know how to create a mat file within a script so it can save the all the headers names to it as VariableNames and not values.I’m trying to update any given table with a new header names imported from a .MAT file. I’m not sure how to approach this. Given the number of columns that the data file has, I want it to access a specific MAT file with new header names so that I can plot the preferred data. I don’t know how to create a mat file within a script so it can save the all the headers names to it as VariableNames and not values. I’m trying to update any given table with a new header names imported from a .MAT file. I’m not sure how to approach this. Given the number of columns that the data file has, I want it to access a specific MAT file with new header names so that I can plot the preferred data. I don’t know how to create a mat file within a script so it can save the all the headers names to it as VariableNames and not values. matfile, matlab MATLAB Answers — New Questions
patternCustom x axis(Az=0) always assumes first element of the array as x axis
I have a antenna pattern array x=table(gain,theta,phi)
Rotated this array along z axis by adding phi=phi+90
Resultant patternCustom plot gives same figure. When I sort the table ascending with phi I can see expected rotated plot. Is this expected?I have a antenna pattern array x=table(gain,theta,phi)
Rotated this array along z axis by adding phi=phi+90
Resultant patternCustom plot gives same figure. When I sort the table ascending with phi I can see expected rotated plot. Is this expected? I have a antenna pattern array x=table(gain,theta,phi)
Rotated this array along z axis by adding phi=phi+90
Resultant patternCustom plot gives same figure. When I sort the table ascending with phi I can see expected rotated plot. Is this expected? antenna toolbox MATLAB Answers — New Questions
Some indices in indexed images made with cmunique are 0, what does that really mean? Isn’t is a bug? I cannot index a colormap with index=0. Documentation is contradictory.
I transform RGB images to indexed images with cmunique. Some of the indices in the indexed image are 0. It is not mentioned in the help for cmunique, but there is a contradictory statement in the help for rgb2ind, bold in the abbreviated citation below:
"[X,map] = rgb2ind(RGB,n) : Indexed image, returned as an m-by-n matrix X of nonnegative integers. If the length of map is less than or equal to 256, then the output image is of class uint8. Otherwise, the output image is of class uint16. n must be less than or equal to 65,536.
The value 0 in the output array X corresponds to the first color in the colormap."
In my case, the length of smallest color map is of the order of ~1500, so uint16 indices are expected. What do I do with elements of X that are 0 (zero), is there a way to prevent this happening?
Here is my relevant code:
% code snippet
Afull=imread(‘myfigure.png’); % myfigure.png is a color image
rectf=[133 56 521 521];
[fig_xrefout,fig_yrefout,Imfig,rectfig] = imcrop(Afull,rectf);
[Imfig_indexed,fig_map] =cmunique(Imfig);
dum=find(Imfig_indexed<=0);
~isempty(dum) % is 1!!!I transform RGB images to indexed images with cmunique. Some of the indices in the indexed image are 0. It is not mentioned in the help for cmunique, but there is a contradictory statement in the help for rgb2ind, bold in the abbreviated citation below:
"[X,map] = rgb2ind(RGB,n) : Indexed image, returned as an m-by-n matrix X of nonnegative integers. If the length of map is less than or equal to 256, then the output image is of class uint8. Otherwise, the output image is of class uint16. n must be less than or equal to 65,536.
The value 0 in the output array X corresponds to the first color in the colormap."
In my case, the length of smallest color map is of the order of ~1500, so uint16 indices are expected. What do I do with elements of X that are 0 (zero), is there a way to prevent this happening?
Here is my relevant code:
% code snippet
Afull=imread(‘myfigure.png’); % myfigure.png is a color image
rectf=[133 56 521 521];
[fig_xrefout,fig_yrefout,Imfig,rectfig] = imcrop(Afull,rectf);
[Imfig_indexed,fig_map] =cmunique(Imfig);
dum=find(Imfig_indexed<=0);
~isempty(dum) % is 1!!! I transform RGB images to indexed images with cmunique. Some of the indices in the indexed image are 0. It is not mentioned in the help for cmunique, but there is a contradictory statement in the help for rgb2ind, bold in the abbreviated citation below:
"[X,map] = rgb2ind(RGB,n) : Indexed image, returned as an m-by-n matrix X of nonnegative integers. If the length of map is less than or equal to 256, then the output image is of class uint8. Otherwise, the output image is of class uint16. n must be less than or equal to 65,536.
The value 0 in the output array X corresponds to the first color in the colormap."
In my case, the length of smallest color map is of the order of ~1500, so uint16 indices are expected. What do I do with elements of X that are 0 (zero), is there a way to prevent this happening?
Here is my relevant code:
% code snippet
Afull=imread(‘myfigure.png’); % myfigure.png is a color image
rectf=[133 56 521 521];
[fig_xrefout,fig_yrefout,Imfig,rectfig] = imcrop(Afull,rectf);
[Imfig_indexed,fig_map] =cmunique(Imfig);
dum=find(Imfig_indexed<=0);
~isempty(dum) % is 1!!! cmunique, value 0, indexed image MATLAB Answers — New Questions
Unrecognized function or variable ‘rlContinuousDeterministicActorRepresentation’
Hello, This is my code
%clc
%clear all
rng(0)
% Load MATPOWER case
mpc = loadcase(‘case118’);
% Create the environment
env = createOpfEnv();
import matlab.rl.*
% Define SAC agent
actorNetwork = [
featureInputLayer(obsInfo.Dimension(1))
fullyConnectedLayer(64)
reluLayer
fullyConnectedLayer(64)
reluLayer
fullyConnectedLayer(actInfo.Dimension(1))
];
criticNetwork = [
featureInputLayer([obsInfo.Dimension(1) + actInfo.Dimension(1)])
fullyConnectedLayer(64)
reluLayer
fullyConnectedLayer(64)
reluLayer
fullyConnectedLayer(1)
];
actorOptions = rlRepresentationOptions(‘Optimizer’,’adam’,’LearnRate’,1e-4);
criticOptions = rlRepresentationOptions(‘Optimizer’,’adam’,’LearnRate’,1e-4);
actor = rlContinuousDeterministicActorRepresentation(actorNetwork, obsInfo, actInfo, ‘Observation’, {‘observations’}, ‘Action’, {‘actions’}, actorOptions);
critic = rlQValueRepresentation(criticNetwork, obsInfo, actInfo, ‘Observation’, {‘observations’}, ‘Action’, {‘actions’}, criticOptions);
agentOptions = rlSACAgentOptions(‘SampleTime’, 1, ‘TargetSmoothFactor’, 1e-3, ‘TargetUpdateFrequency’, 1, ‘ExperienceBufferLength’, 1e6);
agent = rlSACAgent(actor, critic, agentOptions);
% Training options
trainOpts = rlTrainingOptions(…
‘MaxEpisodes’, 1000, …
‘MaxStepsPerEpisode’, 100, …
‘StopTrainingCriteria’, ‘AverageReward’, …
‘StopTrainingValue’, -100, …
‘ScoreAveragingWindowLength’, 10, …
‘Verbose’, true, …
‘Plots’, ‘training-progress’);
% Train the agent
train(agent, env, trainOpts);
and when i tried running i got the error "Error in DRL_code (line 32)
actor = rlContinuousDeterministicActorRepresentation(actorNetwork, obsInfo, actInfo, ‘Observation’, {‘observations’}, ‘Action’, {‘actions’}, actorOptions);"
I am using MATLAB 2024AHello, This is my code
%clc
%clear all
rng(0)
% Load MATPOWER case
mpc = loadcase(‘case118’);
% Create the environment
env = createOpfEnv();
import matlab.rl.*
% Define SAC agent
actorNetwork = [
featureInputLayer(obsInfo.Dimension(1))
fullyConnectedLayer(64)
reluLayer
fullyConnectedLayer(64)
reluLayer
fullyConnectedLayer(actInfo.Dimension(1))
];
criticNetwork = [
featureInputLayer([obsInfo.Dimension(1) + actInfo.Dimension(1)])
fullyConnectedLayer(64)
reluLayer
fullyConnectedLayer(64)
reluLayer
fullyConnectedLayer(1)
];
actorOptions = rlRepresentationOptions(‘Optimizer’,’adam’,’LearnRate’,1e-4);
criticOptions = rlRepresentationOptions(‘Optimizer’,’adam’,’LearnRate’,1e-4);
actor = rlContinuousDeterministicActorRepresentation(actorNetwork, obsInfo, actInfo, ‘Observation’, {‘observations’}, ‘Action’, {‘actions’}, actorOptions);
critic = rlQValueRepresentation(criticNetwork, obsInfo, actInfo, ‘Observation’, {‘observations’}, ‘Action’, {‘actions’}, criticOptions);
agentOptions = rlSACAgentOptions(‘SampleTime’, 1, ‘TargetSmoothFactor’, 1e-3, ‘TargetUpdateFrequency’, 1, ‘ExperienceBufferLength’, 1e6);
agent = rlSACAgent(actor, critic, agentOptions);
% Training options
trainOpts = rlTrainingOptions(…
‘MaxEpisodes’, 1000, …
‘MaxStepsPerEpisode’, 100, …
‘StopTrainingCriteria’, ‘AverageReward’, …
‘StopTrainingValue’, -100, …
‘ScoreAveragingWindowLength’, 10, …
‘Verbose’, true, …
‘Plots’, ‘training-progress’);
% Train the agent
train(agent, env, trainOpts);
and when i tried running i got the error "Error in DRL_code (line 32)
actor = rlContinuousDeterministicActorRepresentation(actorNetwork, obsInfo, actInfo, ‘Observation’, {‘observations’}, ‘Action’, {‘actions’}, actorOptions);"
I am using MATLAB 2024A Hello, This is my code
%clc
%clear all
rng(0)
% Load MATPOWER case
mpc = loadcase(‘case118’);
% Create the environment
env = createOpfEnv();
import matlab.rl.*
% Define SAC agent
actorNetwork = [
featureInputLayer(obsInfo.Dimension(1))
fullyConnectedLayer(64)
reluLayer
fullyConnectedLayer(64)
reluLayer
fullyConnectedLayer(actInfo.Dimension(1))
];
criticNetwork = [
featureInputLayer([obsInfo.Dimension(1) + actInfo.Dimension(1)])
fullyConnectedLayer(64)
reluLayer
fullyConnectedLayer(64)
reluLayer
fullyConnectedLayer(1)
];
actorOptions = rlRepresentationOptions(‘Optimizer’,’adam’,’LearnRate’,1e-4);
criticOptions = rlRepresentationOptions(‘Optimizer’,’adam’,’LearnRate’,1e-4);
actor = rlContinuousDeterministicActorRepresentation(actorNetwork, obsInfo, actInfo, ‘Observation’, {‘observations’}, ‘Action’, {‘actions’}, actorOptions);
critic = rlQValueRepresentation(criticNetwork, obsInfo, actInfo, ‘Observation’, {‘observations’}, ‘Action’, {‘actions’}, criticOptions);
agentOptions = rlSACAgentOptions(‘SampleTime’, 1, ‘TargetSmoothFactor’, 1e-3, ‘TargetUpdateFrequency’, 1, ‘ExperienceBufferLength’, 1e6);
agent = rlSACAgent(actor, critic, agentOptions);
% Training options
trainOpts = rlTrainingOptions(…
‘MaxEpisodes’, 1000, …
‘MaxStepsPerEpisode’, 100, …
‘StopTrainingCriteria’, ‘AverageReward’, …
‘StopTrainingValue’, -100, …
‘ScoreAveragingWindowLength’, 10, …
‘Verbose’, true, …
‘Plots’, ‘training-progress’);
% Train the agent
train(agent, env, trainOpts);
and when i tried running i got the error "Error in DRL_code (line 32)
actor = rlContinuousDeterministicActorRepresentation(actorNetwork, obsInfo, actInfo, ‘Observation’, {‘observations’}, ‘Action’, {‘actions’}, actorOptions);"
I am using MATLAB 2024A reinforcement learning MATLAB Answers — New Questions
PRCC sensitive analysis graphs
I have tried to get prcc sensitve analysis graph, but unfortunately i got an error.I request you please help to overcome the error.
CODE:
% Define parameter ranges
paramRanges = struct(‘beta’, [0.1, 0.5], ‘sigma’, [0.1, 0.3], ‘gamma’, [0.1, 0.4]);
% Number of samples
nSamples = 100;
% Number of parameters
paramNames = fieldnames(paramRanges);
nParams = numel(paramNames);
% Generate LHS samples
lhsSamples = lhsdesign(nSamples, nParams);
% Scale samples to parameter ranges
scaledSamples = zeros(nSamples, nParams);
for i = 1:nParams
low = paramRanges.(paramNames{i})(1);
high = paramRanges.(paramNames{i})(2);
scaledSamples(:, i) = low + lhsSamples(:, i) * (high – low);
end
% Define SEIR model parameters and calculate R0
% Run simulations to compute R0 for each parameter set
R0Values = zeros(nSamples, 1);
for i = 1:nSamples
R0Values(i) = calculateR0(scaledSamples(i, :));
end
% Calculate PRCC
function prcc = calculatePRCC(outputs, samples)
nParams = size(samples, 2);
prcc = zeros(nParams, 1);
for i = 1:nParams
% Rank data
ranksSamples = tiedrank(samples(:, i));
ranksOutputs = tiedrank(outputs);
% Compute correlation
prcc(i) = corr(ranksSamples, ranksOutputs);
end
end
% Perform PRCC analysis for R0 values
prccValues = calculatePRCC(R0Values, scaledSamples);
function R0 = calculateR0(params)
beta = params(1);
sigma = params(2);
gamma = params(3);
% Basic reproduction number for SEIR model
R0 = beta / gamma;
end
% Display results
for i = 1:nParams
fprintf(‘PRCC for %s: %.4fn’, paramNames{i}, prccValues(i));
end
ERROR:
Function definitions in a script must appear at the end of the file.
Move all statements after the "calculateR0" function definition to before the first local function definition.I have tried to get prcc sensitve analysis graph, but unfortunately i got an error.I request you please help to overcome the error.
CODE:
% Define parameter ranges
paramRanges = struct(‘beta’, [0.1, 0.5], ‘sigma’, [0.1, 0.3], ‘gamma’, [0.1, 0.4]);
% Number of samples
nSamples = 100;
% Number of parameters
paramNames = fieldnames(paramRanges);
nParams = numel(paramNames);
% Generate LHS samples
lhsSamples = lhsdesign(nSamples, nParams);
% Scale samples to parameter ranges
scaledSamples = zeros(nSamples, nParams);
for i = 1:nParams
low = paramRanges.(paramNames{i})(1);
high = paramRanges.(paramNames{i})(2);
scaledSamples(:, i) = low + lhsSamples(:, i) * (high – low);
end
% Define SEIR model parameters and calculate R0
% Run simulations to compute R0 for each parameter set
R0Values = zeros(nSamples, 1);
for i = 1:nSamples
R0Values(i) = calculateR0(scaledSamples(i, :));
end
% Calculate PRCC
function prcc = calculatePRCC(outputs, samples)
nParams = size(samples, 2);
prcc = zeros(nParams, 1);
for i = 1:nParams
% Rank data
ranksSamples = tiedrank(samples(:, i));
ranksOutputs = tiedrank(outputs);
% Compute correlation
prcc(i) = corr(ranksSamples, ranksOutputs);
end
end
% Perform PRCC analysis for R0 values
prccValues = calculatePRCC(R0Values, scaledSamples);
function R0 = calculateR0(params)
beta = params(1);
sigma = params(2);
gamma = params(3);
% Basic reproduction number for SEIR model
R0 = beta / gamma;
end
% Display results
for i = 1:nParams
fprintf(‘PRCC for %s: %.4fn’, paramNames{i}, prccValues(i));
end
ERROR:
Function definitions in a script must appear at the end of the file.
Move all statements after the "calculateR0" function definition to before the first local function definition. I have tried to get prcc sensitve analysis graph, but unfortunately i got an error.I request you please help to overcome the error.
CODE:
% Define parameter ranges
paramRanges = struct(‘beta’, [0.1, 0.5], ‘sigma’, [0.1, 0.3], ‘gamma’, [0.1, 0.4]);
% Number of samples
nSamples = 100;
% Number of parameters
paramNames = fieldnames(paramRanges);
nParams = numel(paramNames);
% Generate LHS samples
lhsSamples = lhsdesign(nSamples, nParams);
% Scale samples to parameter ranges
scaledSamples = zeros(nSamples, nParams);
for i = 1:nParams
low = paramRanges.(paramNames{i})(1);
high = paramRanges.(paramNames{i})(2);
scaledSamples(:, i) = low + lhsSamples(:, i) * (high – low);
end
% Define SEIR model parameters and calculate R0
% Run simulations to compute R0 for each parameter set
R0Values = zeros(nSamples, 1);
for i = 1:nSamples
R0Values(i) = calculateR0(scaledSamples(i, :));
end
% Calculate PRCC
function prcc = calculatePRCC(outputs, samples)
nParams = size(samples, 2);
prcc = zeros(nParams, 1);
for i = 1:nParams
% Rank data
ranksSamples = tiedrank(samples(:, i));
ranksOutputs = tiedrank(outputs);
% Compute correlation
prcc(i) = corr(ranksSamples, ranksOutputs);
end
end
% Perform PRCC analysis for R0 values
prccValues = calculatePRCC(R0Values, scaledSamples);
function R0 = calculateR0(params)
beta = params(1);
sigma = params(2);
gamma = params(3);
% Basic reproduction number for SEIR model
R0 = beta / gamma;
end
% Display results
for i = 1:nParams
fprintf(‘PRCC for %s: %.4fn’, paramNames{i}, prccValues(i));
end
ERROR:
Function definitions in a script must appear at the end of the file.
Move all statements after the "calculateR0" function definition to before the first local function definition. prcc, sensitive analysis MATLAB Answers — New Questions
Edge Canary breaks Sharepoint (MacOS)
Just updated to
Just updated to Version 130.0.2831.0 (Official build) Canary (arm64) This massively breaks sharepoint. Read More
How to report SharePoint URL for all Entra Groups
I am looking to report all Entra Groups, the Group Site URL, Count of Owners, Members and Guests to the groups, then to also check each SharePoint online site, to see if any additional permissions have been added in SharePoint directly.
Anyone know how you can pick up the actual Group SPO URL at all, Co-Pilot just want to use:
https://your-tenant.sharepoint.com/sites/GroupName, but this doesn’t always work depending on the name of the group etc?
I am looking to report all Entra Groups, the Group Site URL, Count of Owners, Members and Guests to the groups, then to also check each SharePoint online site, to see if any additional permissions have been added in SharePoint directly. Anyone know how you can pick up the actual Group SPO URL at all, Co-Pilot just want to use:https://your-tenant.sharepoint.com/sites/GroupName, but this doesn’t always work depending on the name of the group etc? Read More
matching 2 spreadsheets list
I have a 2 excel docs, one with my target customer# and the second excel doc with all customer#. I want to match and sort the 2nd sheet with all customer# to match my target customer#
I have a 2 excel docs, one with my target customer# and the second excel doc with all customer#. I want to match and sort the 2nd sheet with all customer# to match my target customer# Read More